diff --git a/gulliver/system/class.logger.php b/gulliver/system/class.logger.php
index 24d7035ab..c107dd71d 100644
--- a/gulliver/system/class.logger.php
+++ b/gulliver/system/class.logger.php
@@ -2,7 +2,7 @@
/**
* class.logger.php
- * Stores a message in the log file, if the file size exceeds
+ * Stores a message in the log file, if the file size exceeds
* specified log file is renamed and a new one is created.
* $fileName = "filename";
* $fileExtension = ".log";
@@ -10,7 +10,7 @@
* $limitSize = 1000000;
* 10000000 -> approximately 10 megabytes
* 1000000 -> approximately 1 megabytes
- *
+ *
* @author Roly Rudy Gutierrez Pinto
* @package gulliver.system
*/
@@ -103,7 +103,7 @@ class Logger
{
$this->renameFile();
$file = fopen($this->filePath, "a+");
- $message = date('Y-m-d H:i:s') . " " . $message;
+ $message = date('Y-m-d H:i:s') . " " . $message . "\n";
fwrite($file, $message);
fclose($file);
}
diff --git a/workflow/engine/bin/cron_single.php b/workflow/engine/bin/cron_single.php
index 45a48979b..a02100e11 100755
--- a/workflow/engine/bin/cron_single.php
+++ b/workflow/engine/bin/cron_single.php
@@ -950,7 +950,7 @@ function saveLog($sSource, $sType, $sDescription)
}
G::verifyPath(PATH_DATA . "log" . PATH_SEP, true);
- G::log("| $sObject | " . $sSource . " | $sType | " . $sDescription . "\n", PATH_DATA);
+ G::log("| $sObject | " . $sSource . " | $sType | " . $sDescription, PATH_DATA);
} catch (Exception $e) {
//CONTINUE
}
diff --git a/workflow/engine/bin/reindex_solr.php b/workflow/engine/bin/reindex_solr.php
index 561ff13bc..0c4795091 100644
--- a/workflow/engine/bin/reindex_solr.php
+++ b/workflow/engine/bin/reindex_solr.php
@@ -350,7 +350,7 @@ function saveLog($sSource, $sType, $sDescription)
print date ('H:i:s') . " ($sSource) $sType $sDescription
\n";
G::verifyPath (PATH_DATA . 'log' . PATH_SEP, true);
- $message = '(' . $sSource . ') ' . $sDescription . "\n";
+ $message = '(' . $sSource . ') ' . $sDescription;
if ($sType == 'action') {
G::log($message, PATH_DATA);
}
diff --git a/workflow/engine/bin/verify_solr.php b/workflow/engine/bin/verify_solr.php
index 9d1103a3a..5466c7362 100644
--- a/workflow/engine/bin/verify_solr.php
+++ b/workflow/engine/bin/verify_solr.php
@@ -499,7 +499,7 @@ function saveLog($sSource, $sType, $sDescription)
print date ('H:i:s') . " ($sSource) $sType $sDescription
\n";
G::verifyPath (PATH_DATA . 'log' . PATH_SEP, true);
- $message = '(' . $sSource . ') ' . $sDescription . "\n";
+ $message = '(' . $sSource . ') ' . $sDescription;
if ($sType == 'action') {
G::log($message, PATH_DATA);
}
diff --git a/workflow/engine/methods/login/authentication.php b/workflow/engine/methods/login/authentication.php
index 2403d4d0e..6c0d191eb 100755
--- a/workflow/engine/methods/login/authentication.php
+++ b/workflow/engine/methods/login/authentication.php
@@ -131,7 +131,7 @@ try {
}
//Log failed authentications
$message = "| Many failed authentication attempts for USER: " . $usr . " | IP: " . G::getIpAddress() . " | WS: " . SYS_SYS;
- $message .= " | BROWSER: " . $_SERVER['HTTP_USER_AGENT'] ." | \n" ;
+ $message .= " | BROWSER: " . $_SERVER['HTTP_USER_AGENT'];
G::log($message, PATH_DATA, 'loginFailed.log');
}