]> git.proxmox.com Git - pmg-api.git/blobdiff - src/PMG/RuleDB/BCC.pm
dkim: add QID in warnings
[pmg-api.git] / src / PMG / RuleDB / BCC.pm
index 65b6fb55a95b3ec8dc09a41fd27ee41dfacba603..81301cfd0abeeae51c1420946cc04b5bece8748e 100644 (file)
@@ -144,8 +144,12 @@ sub execute {
            eval {
                $entity = PMG::DKIMSign::sign_entity($entity, $dkim, $msginfo->{sender});
            };
-           syslog('warning',
-               "Could not create DKIM-Signature - disabling Signing: $@") if $@;
+           if ($@) {
+               syslog('warning',
+                   "%s: Could not create DKIM-Signature - disabling Signing: $@",
+                   $queue->{logid}
+               );
+           }
        }
 
        if ($msginfo->{testmode}) {