Uncommon logger levels in Friendica (#5453)

* "normal" is an uncommon logger level:
- changed LOGGER_NORMAL -> LOGGER_INFO
- added LOGGER_WARNING (a common logger level)

* Used constants instead of values (MrPetovan)
This commit is contained in:
Roland Häder 2018-07-22 20:07:44 +02:00 committed by Hypolite Petovan
parent a202962f03
commit c17adaf333
7 changed files with 29 additions and 25 deletions

View file

@ -61,7 +61,7 @@ class DBStructure
// No valid result?
if (!DBM::is_result($adminlist)) {
logger(sprintf('Cannot notify administrators about update_id=%d, error_message=%s', $update_id, $error_message), LOGGER_NORMAL);
logger(sprintf('Cannot notify administrators about update_id=%d, error_message=%s', $update_id, $error_message), LOGGER_INFO);
// Don't continue
return;