From 2d08a72c2f6b2afb04fb5382a5f592075a0004a8 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 23 Feb 2021 00:28:56 +0100 Subject: lacme-accountd: don't log debug messages unless --debug is set. --- lacme-accountd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lacme-accountd') diff --git a/lacme-accountd b/lacme-accountd index 5109888..47a4c32 100755 --- a/lacme-accountd +++ b/lacme-accountd @@ -67,7 +67,7 @@ usage(0) if $OPTS{help}; my $LOG; sub logmsg($@) { my $lvl = shift // "all"; - if (defined $LOG) { + if (defined $LOG and ($lvl ne "debug" or $OPTS{debug})) { my $now = localtime; $LOG->printflush("[", $now, "] ", @_, "\n") or warn "print: $!"; } -- cgit v1.2.3