From 8113e5ceba9b7c5065e67700fc34263414f4256c Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sun, 26 May 2019 20:37:39 +0000 Subject: [PATCH] 49_SSCam: enhanced log entries of snapinfos with debugactivetoken git-svn-id: https://svn.fhem.de/fhem/trunk@19470 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/49_SSCam.pm | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/fhem/CHANGED b/fhem/CHANGED index 1bbf61b87..85a1d6a6c 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -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. + - change: 49_SSCam: enhanced log entries of snapinfos with debugactivetoken - change: 49_SSCam: attributes rec/snapemailtxt, rec/snaptelegramtxt may contain ":", StmKey quoted depending on attribute noQuotesForSID (Forum: #45671.msg938236.html#msg938236) diff --git a/fhem/FHEM/49_SSCam.pm b/fhem/FHEM/49_SSCam.pm index df6c35db9..baeff9148 100644 --- a/fhem/FHEM/49_SSCam.pm +++ b/fhem/FHEM/49_SSCam.pm @@ -48,6 +48,7 @@ eval "use FHEM::Meta;1" or my $modMetaAbsent = 1; # Versions History intern our %SSCam_vNotesIntern = ( + "8.13.6" => "26.05.2019 enhanced log entries of snapinfos with debugactivetoken ", "8.13.5" => "23.05.2019 StmKey quoted depending on attr noQuotesForSID (Forum: https://forum.fhem.de/index.php/topic,45671.msg938236.html#msg938236), ". "autoplay muted of hls-StreamDev", "8.13.4" => "21.05.2019 rec/snapemailtxt, rec/snaptelegramtxt can contain \":\", commandref revised ", @@ -5249,6 +5250,9 @@ sub SSCam_camop_parse ($) { my $num = $hash->{HELPER}{SNAPNUM}; # Gesamtzahl der auszulösenden Schnappschüsse my $ncount = $hash->{HELPER}{SNAPNUMCOUNT}; # Restzahl der auszulösenden Schnappschüsse + if (AttrVal($name,"debugactivetoken",0)) { + Log3($name, 1, "$name - Snapshot number ".($num-$ncount+1)." (ID: $snapid) of total $num snapshots with transaction-ID: $tac done"); + } $ncount--; # wird vermindert je Snap my $lag = $hash->{HELPER}{SNAPLAG}; # Zeitverzögerung zwischen zwei Schnappschüssen my $emtxt = $hash->{HELPER}{SMTPMSG}?$hash->{HELPER}{SMTPMSG}:""; # Text für Email-Versand @@ -5263,6 +5267,9 @@ sub SSCam_camop_parse ($) { # Anzahl und Size für Schnappschußabruf bestimmen my ($slim,$ssize) = SSCam_snaplimsize($hash); + if (AttrVal($name,"debugactivetoken",0)) { + Log3($name, 1, "$name - start get snapinfo of last $slim snapshots with transaction-ID: $tac"); + } if(!$hash->{HELPER}{TRANSACTION}) { # Token freigeben vor nächstem Kommando wenn keine Transaktion läuft