mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 10:46:03 +00:00
Loglevel added
git-svn-id: https://svn.fhem.de/fhem/trunk@2998 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7f0caa33fd
commit
df6367e806
@ -15,7 +15,8 @@ watchdog_Initialize($)
|
||||
$hash->{DefFn} = "watchdog_Define";
|
||||
$hash->{UndefFn} = "watchdog_Undef";
|
||||
$hash->{NotifyFn} = "watchdog_Notify";
|
||||
$hash->{AttrList} = "disable:0,1 regexp1WontReactivate:0,1";
|
||||
$hash->{AttrList} = "disable:0,1 regexp1WontReactivate:0,1 ".
|
||||
"loglevel:0,1,2,3,4,5,6";
|
||||
}
|
||||
|
||||
|
||||
@ -123,7 +124,7 @@ watchdog_Trigger($)
|
||||
return "";
|
||||
}
|
||||
|
||||
Log(3, "Watchdog $name triggered");
|
||||
Log(GetLogLevel($name,3), "Watchdog $name triggered");
|
||||
my $exec = SemicolonEscape($watchdog->{CMD});;
|
||||
$watchdog->{STATE} = "triggered";
|
||||
|
||||
@ -131,7 +132,7 @@ watchdog_Trigger($)
|
||||
$watchdog->{READINGS}{Triggered}{VAL} = $watchdog->{STATE};
|
||||
|
||||
my $ret = AnalyzeCommandChain(undef, $exec);
|
||||
Log 3, $ret if($ret);
|
||||
Log(GetLogLevel($name,3), $ret) if($ret);
|
||||
}
|
||||
|
||||
sub
|
||||
@ -227,6 +228,7 @@ watchdog_Undef($$)
|
||||
<b>Attributes</b>
|
||||
<ul>
|
||||
<li><a href="#disable">disable</a></li>
|
||||
<li><a href="#loglevel">loglevel</a></li>
|
||||
<li><a name="regexp1WontReactivate">regexp1WontReactivate</a><br>
|
||||
When a watchdog is active, a second event matching regexp1 will
|
||||
normally reset the timeout. Set this attribute to prevents this.
|
||||
|
Loading…
x
Reference in New Issue
Block a user