X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FWatchdog.pm;h=180d364c741361ff930f44d3ff1e6e315a16218b;hb=001601a55b93baa85e8433f7bd0fbdfea41c487f;hp=9001b1b32d395b241118a6d4bc81c4b289121ec1;hpb=ff575015b4bf46c210403257cb7fb0c4f3fe8c28;p=kivitendo-erp.git diff --git a/SL/Watchdog.pm b/SL/Watchdog.pm index 9001b1b32..180d364c7 100644 --- a/SL/Watchdog.pm +++ b/SL/Watchdog.pm @@ -13,14 +13,16 @@ sub STORE { if (substr($key, 0, 10) eq "Watchdog::") { substr $key, 0, 10, ""; - $watched_variables{$key} = $value; - if ($value) { - $main::lxdebug->_write("WATCH", "Starting to watch '$key' with current value '$this->{$key}'"); - } else { - $main::lxdebug->_write("WATCH", "Stopping to watch '$key'"); + foreach $key (split m/[ ,]/, $key) { + $watched_variables{$key} = $value; + if ($value) { + $main::lxdebug->_write("WATCH", "Starting to watch '$key' with current value '$this->{$key}'"); + } else { + $main::lxdebug->_write("WATCH", "Stopping to watch '$key'"); + } } - return; + return; } if ($watched_variables{$key}