Commit c17db0ea authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Merge branch 'master' of git.devlabs.linuxassist.net:policyd

parents 86d59d62 fcf4043a
......@@ -648,7 +648,11 @@ sub log
$msg = "[CORE] $logtxt: $msg";
}
$self->SUPER::log($level,"[".$self->log_time." - $$] $msg",@args);
# If we have args, this is more than likely a format string & args
if (@args > 0) {
$msg = sprintf($msg,@args);
}
$self->SUPER::log($level,"[".$self->log_time." - $$] $msg");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment