chiark / gitweb /
pubkeys: Improve debug message for expected ENOENT
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Nov 2019 17:28:11 +0000 (17:28 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Feb 2020 21:56:49 +0000 (21:56 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
pubkeys.fl.pl

index f0e8d58c3364f7702117635a009377e1a96080b1..69cc3c925aee2ab249529d32d631c5cfb4f8f399 100755 (executable)
@@ -283,7 +283,8 @@ keyset_load(const char *path, struct buffer_if *data_buf,
     if (!pkyyin) {
        slilog(LI,
               errno==ENOENT ? logcl_enoent : M_ERR,
-              "could not open keyset file %s: %s",
+              "%scould not open keyset file %s: %s",
+              logcl_enoent==M_DEBUG && errno==ENOENT ? "expectedly " : "",
               path,strerror(errno));
        goto err;
     }