mirror of
https://passt.top/passt
synced 2025-06-09 17:15:34 +02:00
conf, util, tap: Implement --trace option for extra verbose logging
--debug can be a bit too noisy, especially as single packets or socket messages are logged: implement a new option, --trace, implying --debug, that enables all debug messages. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
14c4c0253c
commit
d2e40bb8d9
9 changed files with 55 additions and 4 deletions
2
passt.h
2
passt.h
|
@ -92,6 +92,7 @@ enum passt_modes {
|
|||
* struct ctx - Execution context
|
||||
* @mode: Operation mode, qemu/UNIX domain socket or namespace/tap
|
||||
* @debug: Enable debug mode
|
||||
* @trace: Enable tracing (extra debug) mode
|
||||
* @quiet: Don't print informational messages
|
||||
* @foreground: Run in foreground, don't log to stderr by default
|
||||
* @stderr: Force logging to stderr
|
||||
|
@ -153,6 +154,7 @@ enum passt_modes {
|
|||
struct ctx {
|
||||
enum passt_modes mode;
|
||||
int debug;
|
||||
int trace;
|
||||
int quiet;
|
||||
int foreground;
|
||||
int stderr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue