98_freezemon.pm: fixed collection of logmessages when set inactive

git-svn-id: https://svn.fhem.de/fhem/trunk@16535 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
KernSani
2018-04-02 17:04:41 +00:00
parent a646b1ff6d
commit c8118c6a29

View File

@@ -582,7 +582,7 @@ sub freezemon_Attr($) {
my $path = $1;
$path =~ s/%L/$attr{global}{logdir}/g if ( $path =~ m/%/ && $attr{global}{logdir} );
if ( opendir( DH, $path ) ) {
freezemon_install_log_wrapper($hash);
freezemon_install_log_wrapper($hash) if (!isDisabled($name));
closedir(DH);
}
else {