]> git.mxchange.org Git - friendica.git/commitdiff
introducing Logger::log
authorPhilipp Holzer <admin@philipp.info>
Wed, 31 Oct 2018 13:48:19 +0000 (14:48 +0100)
committerPhilipp Holzer <admin@philipp.info>
Wed, 31 Oct 2018 13:48:19 +0000 (14:48 +0100)
src/Core/Update.php

index 2c070f67e9e465cfb2bb9bd02c48b314ea397542..b9f3f3d1c9fdc985ec9d83c570b1ee5dd0195f14 100644 (file)
@@ -163,7 +163,7 @@ class Update
                                }
                        }
                } else {
-                       logger('Skipping \'' . $funcname . '\' without executing', LOGGER_DEBUG);
+                        Logger::log('Skipping \'' . $funcname . '\' without executing', Logger::DEBUG);
 
                        Config::set('database', 'last_successful_update_function', $funcname);
                        Config::set('database', 'last_successful_update_function_time', time());
@@ -189,7 +189,7 @@ class Update
 
                // No valid result?
                if (!DBA::isResult($adminlist)) {
-                       logger(sprintf('Cannot notify administrators about update_id=%d, error_message=%s', $update_id, $error_message), LOGGER_INFO);
+                       Logger::log(sprintf('Cannot notify administrators about update_id=%d, error_message=%s', $update_id, $error_message), Logger::INFO);
 
                        // Don't continue
                        return;
@@ -220,7 +220,7 @@ class Update
                }
 
                //try the logger
-               logger("CRITICAL: Database structure update failed: ".$error_message);
+               Logger::log("CRITICAL: Database structure update failed: " . $error_message);
        }
 
        private static function updateSuccessfull($from_build, $to_build)
@@ -252,6 +252,6 @@ class Update
                }
 
                //try the logger
-               logger("Database structure update successful.", LOGGER_TRACE);
+               Logger::log("Database structure update successful.", Logger::TRACE);
        }
 }