Bugfix: zombie FS20 devices and some small changes
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@59 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -15,7 +15,7 @@ FileLog_Initialize($)
|
||||
$hash->{UndefFn} = "FileLog_Undef";
|
||||
$hash->{NotifyFn} = "FileLog_Log";
|
||||
$hash->{AttrFn} = "FileLog_Attr";
|
||||
$hash->{AttrList} = "disable:0,1 logtype";
|
||||
$hash->{AttrList} = "disable:0,1 logtype nrarchive archivedir";
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,13 @@ FileLog_Undef($$)
|
||||
return undef;
|
||||
}
|
||||
|
||||
sub
|
||||
HandleArchiving($)
|
||||
{
|
||||
my ($log) = @_;
|
||||
if(!
|
||||
|
||||
}
|
||||
|
||||
#####################################
|
||||
sub
|
||||
@@ -83,6 +90,7 @@ FileLog_Log($$)
|
||||
my $cn = ResolveDateWildcards($log->{FILENAME}, @t);
|
||||
|
||||
if($cn ne $log->{CURRENT}) { # New logfile
|
||||
HandleArchiving($log);
|
||||
$fh->close();
|
||||
$fh = new IO::File ">>$cn";
|
||||
if(!defined($fh)) {
|
||||
|
||||
Reference in New Issue
Block a user