]> 91.132.146.200 Git - insipid.git/commitdiff
INFO, WARN and ERROR in log messages
authorBanana <banana@mirage>
Fri, 27 Dec 2019 11:10:40 +0000 (12:10 +0100)
committerBanana <banana@mirage>
Fri, 27 Dec 2019 11:10:40 +0000 (12:10 +0100)
ChangeLog
webroot/lib/category.class.php
webroot/lib/simple-imap.class.php
webroot/lib/summoner.class.php
webroot/lib/tag.class.php

index 45ed8219da6b5247f2533532646a778a11eea549..30d66b3350a2dbf95322058da4572456c3508635 100755 (executable)
--- 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
index de47cd004ed553fe0d1099f23a65b5334d52be16..d2a1343f28e4d987cf316f0539918b5f8fc01000 100644 (file)
@@ -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();
                        }
index 8467025b624b8efefb71c1d6440479872903da80..47bb627acfc6331bd295e21679fde5e3d00c227a 100644 (file)
@@ -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;
 
index 6496037455019af3fef51ab32f443c73e117e290..ca55dec3c8b3eeab8492726bd637f362e3ff0d58 100644 (file)
@@ -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);
index d7f9052ec806275feb43eb43c022ec45f5c0abc0..8be02fe78bf3739b8b4a74832a25bdd23696e602 100644 (file)
@@ -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();
                        }