Minor update in DB IO for phpstan check

This commit is contained in:
Clemens Schwaighofer
2022-02-09 10:32:26 +09:00
parent 03f0de5026
commit c584af8393
3 changed files with 25 additions and 11 deletions

View File

@@ -59,7 +59,11 @@ $log = new CoreLibs\Debug\Logging([
// automatic hide for DEBUG messages on live server
// can be overridden when setting DEBUG_ALL_OVERRIDE on top of the script
// (for emergency debugging of one page only)
if ((TARGET == 'live' || TARGET == 'remote') && !empty($DEBUG_ALL_OVERRIDE)) {
if (
(TARGET == 'live' || TARGET == 'remote') &&
DEBUG === true &&
!empty($DEBUG_ALL_OVERRIDE)
) {
foreach (['debug', 'echo', 'print'] as $target) {
$log->setLogLevelAll($target, false);
}