Skip to content
Snippets Groups Projects
Commit bbb703dc authored by Demian Katz's avatar Demian Katz
Browse files

Fix bug in handling invalid log levels.

parent 3c0776fb
No related merge requests found
...@@ -299,8 +299,10 @@ class LoggerFactory implements FactoryInterface ...@@ -299,8 +299,10 @@ class LoggerFactory implements FactoryInterface
$max = Logger::EMERG; // Emergency: system is unusable $max = Logger::EMERG; // Emergency: system is unusable
$min = Logger::ALERT; // Alert: action must be taken immediately $min = Logger::ALERT; // Alert: action must be taken immediately
break; break;
default: // INVALID FILTER default:
continue; // INVALID FILTER, so skip it. We must continue 2 levels, so we
// continue the foreach loop instead of just breaking the switch.
continue 2;
} }
// Clone the submitted writer since we'll need a separate instance of the // Clone the submitted writer since we'll need a separate instance of the
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment