adding the QID in warnings allows those log lines to be picked up by the
pmg-log-tracker. this way the warnings show up in the tracking center.
Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
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}
+ );
+ }
}
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}) {