fix missing space between action and username
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -149,11 +149,11 @@ class FileLogger extends AbstractLogger {
|
|||||||
if($text != null
|
if($text != null
|
||||||
&& $text != '')
|
&& $text != '')
|
||||||
{
|
{
|
||||||
fwrite($fp, date("d.m.Y H:i:s", $now) . " [" . $_type . "] [" . $_action . "-action" . $name . "] " . $text . "\n");
|
fwrite($fp, date("d.m.Y H:i:s", $now) . " [" . $_type . "] [" . $_action . "-action " . $name . "] " . $text . "\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fwrite($fp, date("d.m.Y H:i:s", $now) . " [" . $_type . "] [" . $_action . "-action" . $name . "] No text given!!! Check scripts!\n");
|
fwrite($fp, date("d.m.Y H:i:s", $now) . " [" . $_type . "] [" . $_action . "-action " . $name . "] No text given!!! Check scripts!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|||||||
@@ -114,9 +114,9 @@ class SysLogger extends AbstractLogger {
|
|||||||
if ($text != null
|
if ($text != null
|
||||||
&& $text != ''
|
&& $text != ''
|
||||||
) {
|
) {
|
||||||
syslog((int)$type, "[" . ucfirst($_action) . " Action" . $name . "] " . $text);
|
syslog((int)$type, "[" . ucfirst($_action) . " Action " . $name . "] " . $text);
|
||||||
} else {
|
} else {
|
||||||
syslog((int)$type, "[" . ucfirst($_action) . " Action" . $name . "] No text given!!! Check scripts!");
|
syslog((int)$type, "[" . ucfirst($_action) . " Action " . $name . "] No text given!!! Check scripts!");
|
||||||
}
|
}
|
||||||
|
|
||||||
closelog();
|
closelog();
|
||||||
|
|||||||
Reference in New Issue
Block a user