added isDebugLoggingEnabled()
This commit is contained in:
parent
4cb8aec794
commit
57c169e700
|
@ -208,6 +208,17 @@ function logoffAndBackToLoginPage() {
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns if debug messages are to be logged.
|
||||||
|
*
|
||||||
|
* @return boolean debug enabled
|
||||||
|
*/
|
||||||
|
function isDebugLoggingEnabled() {
|
||||||
|
if (isset($_SESSION['cfgMain'])) $cfg = $_SESSION['cfgMain'];
|
||||||
|
else $cfg = new LAMCfgMain();
|
||||||
|
return $cfg->logLevel >= LOG_DEBUG;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Puts a new message in the log file.
|
* Puts a new message in the log file.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue