Skip to content
Snippets Groups Projects
Commit 1833ed5e authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

bugfix(factory): wc logger

parent ac2d15fa
No related branches found
No related tags found
1 merge request!24bugfix(factory): wc logger
Pipeline #125445 passed
......@@ -52,7 +52,7 @@ final class SimpleLoggerFactory implements LoggerFactory {
* @internal
*/
public function create_wc_handler() {
if ( ! $this->options->use_wp_log && ! empty( $this->logger->getHandlers() ) ) {
while ( ! $this->options->use_wp_log && ! empty( $this->logger->getHandlers() ) ) {
$this->logger->popHandler();
}
$this->logger->pushHandler(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment