fix missing space between action and username

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2014-01-03 10:56:59 +01:00
parent 63d5547d1e
commit f252f134b2
2 changed files with 4 additions and 4 deletions

View File

@@ -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);

View File

@@ -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();