mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
log: only print timestamps when verbosity increased
While timestamps can be handy, they clutter output for normal users. Let's print them only when verbosity (-v) is increased from default. Currently, default is 2 (-vv) so for timestamps one should use -vvv or -v3. Alternatively, we could introduce a separate --timestamps option. Personally, I find it more handy for timestamps to be tied to log level. Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
3d9ff2706f
commit
5f9b8794e0
@@ -443,7 +443,7 @@ usage:
|
||||
" -v[NUM] set logging level (higher level means more output):\n"
|
||||
" -v1|-v - only errors and messages\n"
|
||||
" -v2|-vv - also warnings (default level)\n"
|
||||
" -v3|-vvv - also information messages\n"
|
||||
" -v3|-vvv - also information messages and timestamps\n"
|
||||
" -v4|-vvvv - lots of debug\n"
|
||||
"\n"
|
||||
"* Memory dumping options:\n"
|
||||
|
Reference in New Issue
Block a user