From 4d11ff99a2c58252a63f3da807087cc84226d2a0 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sun, 12 Oct 2014 12:25:44 +0000 Subject: [PATCH] 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 --- fhem/FHEM/98_update.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/98_update.pm b/fhem/FHEM/98_update.pm index 78c83205c..1e5ef1a26 100644 --- a/fhem/FHEM/98_update.pm +++ b/fhem/FHEM/98_update.pm @@ -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"); } }