Skip to content
Snippets Groups Projects
Commit 59dd4a5a authored by Dyszczo's avatar Dyszczo
Browse files

Merge branch 'bugfix/disable-exception' into 'master'

disable log exception

See merge request !11
parents 9ae82e9a a04949a0
No related branches found
No related tags found
1 merge request!11disable log exception
Pipeline #6713 failed
## [1.5.3] - 2019-04-25
### Fixed
- Exception while trying to disable log
## [1.5.2] - 2019-04-25
### Changed
- wp-notice 3.x
......
......@@ -53,10 +53,12 @@ class WPDeskLoggerFactory extends BasicLoggerFactory
if (!Registry::hasLogger($name)) {
$this->createWPDeskLogger($name);
}
if (Registry::hasLogger($name)) {
/** @var Logger $logger */
$logger = Registry::getInstance($name);
$this->removeAllHandlers($logger);
}
}
/**
* Creates default WPDesk logger.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment