aboutsummaryrefslogtreecommitdiffstats
path: root/lacme-accountd
diff options
context:
space:
mode:
Diffstat (limited to 'lacme-accountd')
-rwxr-xr-xlacme-accountd2
1 files changed, 1 insertions, 1 deletions
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: $!";
}