Bug fixes and clean ups
This commit is contained in:
@@ -3123,16 +3123,13 @@ class IO
|
||||
|
||||
/**
|
||||
* switches the debug flag on or off
|
||||
* if none given, then return current set only
|
||||
* @param bool|null $debug true/false or null for just getting current set
|
||||
* @return bool Current debug flag as set
|
||||
*
|
||||
* @param bool $debug True/False to turn debugging in this calss on or off
|
||||
* @return void
|
||||
*/
|
||||
public function dbSetDebug(?bool $debug = null): bool
|
||||
public function dbSetDebug(bool $debug): void
|
||||
{
|
||||
if ($debug !== null) {
|
||||
$this->db_debug = $debug;
|
||||
}
|
||||
return $this->db_debug;
|
||||
$this->db_debug = $debug;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3140,9 +3137,11 @@ class IO
|
||||
* OR
|
||||
* with the optional parameter fix sets debug
|
||||
* returns current set stats
|
||||
*
|
||||
* @param bool|null $debug Flag to turn debug on off or null for toggle
|
||||
* @return bool Current debug status
|
||||
* True for debug is on, False for off
|
||||
* @deprecated Use dbSetDebug and dbGetDebug
|
||||
*/
|
||||
public function dbToggleDebug(?bool $debug = null): bool
|
||||
{
|
||||
@@ -3156,6 +3155,7 @@ class IO
|
||||
|
||||
/**
|
||||
* Return current set db debug flag status
|
||||
*
|
||||
* @return bool Current debug status
|
||||
*/
|
||||
public function dbGetDebug(): bool
|
||||
|
||||
@@ -177,7 +177,6 @@ class Support
|
||||
$caller_level = 1;
|
||||
$caller_list = self::getCallerMethodList();
|
||||
if ($caller_list[0] == 'dV') {
|
||||
echo "Raise caller level<br>: " . $caller_list[0] . "<br>";
|
||||
$caller_level = 2;
|
||||
}
|
||||
// we need to strip the string in <small></small that is
|
||||
|
||||
@@ -675,9 +675,11 @@ class Logging
|
||||
*
|
||||
* @return bool True, we are at debug level
|
||||
*/
|
||||
public function getJsDebug(): bool
|
||||
public function loggingLevelIsDebug(): bool
|
||||
{
|
||||
return $this->log_level === Level::Debug ? true : false;
|
||||
return $this->getLoggingLevel()->includes(
|
||||
Level::Debug
|
||||
);
|
||||
}
|
||||
|
||||
// log file id set (file name prefix)
|
||||
|
||||
Reference in New Issue
Block a user