[PATCH 08/35] monitor: add command line options to control logging

Hannes Reinecke hare at suse.de
Thu Feb 4 02:04:52 EST 2021


On 1/26/21 9:32 PM, mwilck at suse.com wrote:
> From: Martin Wilck <mwilck at suse.com>
> 
> Standard syslog loglevels are used.
> Options:
> 
>   -S/--silent   to suppress LOG_NOTICE
>   -v/--verbose  to enable LOG_INFO (overrides -S)
>   -D/--debug    to enable LOG_DEBUG (overrides -S, -v)
>   -C/--clockstamps to enable time stamps on log messages.
> 
> I tried to use short options that don't conflict with options
> from nvme connect-all, because many of those options might be
> useful for the monitor, too.
> 
> Signed-off-by: Martin Wilck <mwilck at suse.com>
> ---
>   monitor.c | 47 +++++++++++++++++++++++++++++++++++++++++------
>   1 file changed, 41 insertions(+), 6 deletions(-)
> ... and if you had moved the logging functionality prior to the monitor 
code, this patch could be merged with the main monitor functionality, too.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare at suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer



More information about the Linux-nvme mailing list