aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2021-02-23 00:28:56 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-23 00:58:07 +0100
commit2d08a72c2f6b2afb04fb5382a5f592075a0004a8 (patch)
tree8e3ec26b9fb6fbffb5a22fbfdbc3df8cb1fda125
parentaf5e3d794fc2f83f6cc3b5ddff386dad5463707d (diff)
lacme-accountd: don't log debug messages unless --debug is set.
-rw-r--r--Changelog1
-rwxr-xr-xlacme-accountd2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog b/Changelog
index da34ddc..c4dd0fc 100644
--- a/Changelog
+++ b/Changelog
@@ -4,6 +4,7 @@ lacme (0.8.1) upstream;
+ lacme-accountd: refuse to sign JWS with an invalid Protected Header.
- lacme: in the [accountd] config, let lacme-accountd(1) do the
%-expansion for 'config', not lacme(8) when building the command.
+ - lacme-accountd: don't log debug messages unless --debug is set.
-- Guilhem Moulin <guilhem@fripost.org> Mon, 22 Feb 2021 12:04:28 +0100
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: $!";
}