2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

93_DbLog: fix line breaks in set function, Forum: #110673

git-svn-id: https://svn.fhem.de/fhem/trunk@21801 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-04-29 09:37:37 +00:00
parent 0aea6c6a1b
commit 042d9e1025
2 changed files with 1626 additions and 1606 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 93_DbLog: fix line breaks in set function, Forum: #110673
- bugfix: GardenaSmart: all modules change to new API and code PBP conform
- feature: 37_echodevice.pm A1WAR447VT003J Yamaha MusicCast 20
CHANGE: get status

View File

@ -30,6 +30,7 @@ no if $] >= 5.017011, warnings => 'experimental::smartmatch';
# Version History intern by DS_Starter:
our %DbLog_vNotesIntern = (
"4.9.12" => "28.04.2020 fix line breaks in set function, Forum: #110673 ",
"4.9.11" => "22.03.2020 logfile entry if DBI module not installed, Forum: #109382 ",
"4.9.10" => "31.01.2020 fix warning, Forum: #107950 ",
"4.9.9" => "21.01.2020 default ParseEvent changed again, Forum: #106769 ",
@ -545,11 +546,29 @@ sub DbLog_Set($@) {
my ($hash, @a) = @_;
my $name = $hash->{NAME};
my $async = AttrVal($name, "asyncMode", undef);
my $usage = "Unknown argument, choose one of reduceLog reduceLogNbl reopen rereadcfg:noArg count:noArg countNbl:noArg
deleteOldDays deleteOldDaysNbl userCommand clearReadings:noArg
eraseReadings:noArg addLog ";
$usage .= "listCache:noArg addCacheLine purgeCache:noArg commitCache:noArg exportCache:nopurge,purgecache " if (AttrVal($name, "asyncMode", undef));
$usage .= "configCheck:noArg ";
my $usage = "Unknown argument, choose one of ".
"reduceLog ".
"reduceLogNbl ".
"reopen ".
"rereadcfg:noArg ".
"count:noArg ".
"configCheck:noArg ".
"countNbl:noArg ".
"deleteOldDays ".
"deleteOldDaysNbl ".
"userCommand ".
"clearReadings:noArg ".
"eraseReadings:noArg ".
"addLog "
;
$usage .= "listCache:noArg ".
"addCacheLine ".
"purgeCache:noArg ".
"commitCache:noArg ".
"exportCache:nopurge,purgecache "
if (AttrVal($name, "asyncMode", undef));
my $history = $hash->{HELPER}{TH};
my $current = $hash->{HELPER}{TC};
my (@logs,$dir);