improved logging for boolean vars
This commit is contained in:
parent
e459f739f2
commit
cc5acf3c9e
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ class Logging {
|
||||||
{
|
{
|
||||||
if (is_array($p_msg) || is_object($p_msg)) {
|
if (is_array($p_msg) || is_object($p_msg)) {
|
||||||
return print_r($p_msg, true);
|
return print_r($p_msg, true);
|
||||||
|
} else if (is_bool($p_msg)) {
|
||||||
|
return $p_msg ? "true" : "false";
|
||||||
} else {
|
} else {
|
||||||
return $p_msg;
|
return $p_msg;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue