98_update: fix multiple backup if running in the background

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6752 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-10-12 12:25:44 +00:00
parent f943aebfe5
commit 4d11ff99a2

View File

@@ -85,6 +85,7 @@ update_Log2Event($$)
my ($level, $text) = @_;
return if($inLog || $level > $attr{global}{verbose});
$inLog = 1;
$text =~ s/\n/ /g; # Multiline text causes havoc in Analyze
BlockingInformParent("DoTrigger", ["global", $text, 1], 0);
BlockingInformParent("Log", [$level, $text], 0);
$inLog = 0;
@@ -245,7 +246,9 @@ doUpdate($$)
uLog(1, "Please consider using the global attribute sendStatistics");
} elsif(defined($ss) && lc($ss) eq "onupdate") {
uLog(1, "");
uLog(1, AnalyzeCommandChain(undef, "fheminfo send"));
my $ret = AnalyzeCommandChain(undef, "fheminfo send");
$ret =~ s/.*server response:/server response:/ms;
uLog(1, "fheminfo $ret");
}
}