mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 09:39:58 -06:00
my_logger: make the tag optional
This commit is contained in:
@@ -146,7 +146,7 @@ function my_date($fmt, $time) {
|
||||
return date(strtr($fmt,$legacy), $time);
|
||||
}
|
||||
// ensure params passed to logger are properly escaped
|
||||
function my_logger($tag, $message) {
|
||||
function my_logger($message, $tag="webgui") {
|
||||
exec('logger -t '.escapeshellarg($tag).' -- '.escapeshellarg($message));
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user