From: Banana Date: Fri, 27 Dec 2019 11:10:40 +0000 (+0100) Subject: INFO, WARN and ERROR in log messages X-Git-Tag: 2.2_2019-12-27~4 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=b38c2c2ac1ed3ebc1b338dc7202da5da336d45c8;p=insipid.git INFO, WARN and ERROR in log messages --- diff --git a/ChangeLog b/ChangeLog index 45ed821..30d66b3 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ version 2.2 - Guardian of Ice - (tba) * awaiting moderation links can new be moderated * clean up the local storage via stats page (if authenticated) * Updated documentation + * INFO, WARN and ERROR now in the log files used for messages * Fixed an error in create sql file * Fixed info when a tag or category has no links * Fixed code cleanups diff --git a/webroot/lib/category.class.php b/webroot/lib/category.class.php index de47cd0..d2a1343 100644 --- a/webroot/lib/category.class.php +++ b/webroot/lib/category.class.php @@ -157,7 +157,7 @@ class Category { if(DEBUG) { var_dump($e->getMessage()); } - error_log('Failed to remove category: '.var_export($e->getMessage(),true)); + error_log('ERROR Failed to remove category: '.var_export($e->getMessage(),true)); $this->DB->rollback(); } diff --git a/webroot/lib/simple-imap.class.php b/webroot/lib/simple-imap.class.php index 8467025..47bb627 100644 --- a/webroot/lib/simple-imap.class.php +++ b/webroot/lib/simple-imap.class.php @@ -109,8 +109,8 @@ class SimpleImap { } # log messages processed to all messages - error_log("Read ".$messagecount." messages"); - error_log("Processed ".$processedmessagescount." messages"); + error_log("INFO Read ".$messagecount." messages"); + error_log("INFO Processed ".$processedmessagescount." messages"); return $ret; diff --git a/webroot/lib/summoner.class.php b/webroot/lib/summoner.class.php index 6496037..ca55dec 100644 --- a/webroot/lib/summoner.class.php +++ b/webroot/lib/summoner.class.php @@ -180,7 +180,7 @@ class Summoner { $ret = $do; } else { - error_log(var_export(curl_error($ch),true)); + error_log('ERROR '.var_export(curl_error($ch),true)); } curl_close($ch); diff --git a/webroot/lib/tag.class.php b/webroot/lib/tag.class.php index d7f9052..8be02fe 100644 --- a/webroot/lib/tag.class.php +++ b/webroot/lib/tag.class.php @@ -154,7 +154,7 @@ class Tag { if(DEBUG) { var_dump($e->getMessage()); } - error_log('Failed to remove tag: '.var_export($e->getMessage(),true)); + error_log('ERROR Failed to remove tag: '.var_export($e->getMessage(),true)); $this->DB->rollback(); }