Skip to content

Conversation

@VaiTon
Copy link
Contributor

@VaiTon VaiTon commented Nov 24, 2023

No description provided.

@yunzheng yunzheng self-assigned this Dec 4, 2023
@yunzheng
Copy link
Member

yunzheng commented Dec 4, 2023

Hi @VaiTon,

Thanks for the nice additions! Is it possible to change the timestamp format of zerolog to ISO format? now it logs only time and in am/pm notation.

@VaiTon
Copy link
Contributor Author

VaiTon commented Dec 10, 2023

@yunzheng done! :)

@yunzheng
Copy link
Member

Thanks, looks much better :)

Can you also update the README.md with the new --help output as -json was added.

Also found a small issue, if the command failed to run (eg permission not denied) I cannot CTRL+C it.

$ ./pcap-broker -cmd 'tcpdump -i eth0 -n --immediate-mode -s 65535 -U -w -'
2023-12-11T14:33:41Z ??? tcpdump: eth0: You don't have permission to capture on that device
(socket: Operation not permitted)
^C
<-- hangs here -->

Before it would just exit by default:

$ ./pcap-broker-orig -cmd 'tcpdump -i eth0 -n --immediate-mode -s 65535 -U -w -'
2023/12/11 14:34:23 config PCAP_COMMAND = "tcpdump -i eth0 -n --immediate-mode -s 65535 -U -w -"
2023/12/11 14:34:23 config LISTEN_ADDRESS = "localhost:4242"
2023/12/11 14:34:23 cmd = [tcpdump -i eth0 -n --immediate-mode -s 65535 -U -w -]
2023/12/11 14:34:23 PID 8837
tcpdump: eth0: You don't have permission to capture on that device
(socket: Operation not permitted)
2023/12/11 14:34:23 Process exited with error: exit status 1

@VaiTon
Copy link
Contributor Author

VaiTon commented Dec 11, 2023

@yunzheng all done (AFAIK :) )

Copy link
Member

@yunzheng yunzheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for the contribution!

@yunzheng yunzheng merged commit 4ffdb87 into fox-it:main Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants