Skip to content

Commit

Permalink
Fixed the behaviour of $forceLog parameter for Mage::log() (#3263)
Browse files Browse the repository at this point in the history
  • Loading branch information
empiricompany committed May 18, 2023
1 parent ce8622c commit 6b08b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Mage.php
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ public static function log($message, $level = null, $file = '', $forceLog = fals

$level = is_null($level) ? Zend_Log::DEBUG : $level;

if (!self::$_isDeveloperMode && $level > $maxLogLevel) {
if (!self::$_isDeveloperMode && $level > $maxLogLevel && !$forceLog) {
return;
}

Expand Down

0 comments on commit 6b08b60

Please sign in to comment.