mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
93_DbLog: V2.22.1, new attribute "suppressAddLogV3"
git-svn-id: https://svn.fhem.de/fhem/trunk@14868 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
14189a57a6
commit
affe56d38e
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- feature: 93_DbLog: V2.22.1, new attribute "suppressAddLogV3"
|
||||||
- feature: 49_SSCam: V2.6.1, new commands snapGallery, createSnapGallery and
|
- feature: 49_SSCam: V2.6.1, new commands snapGallery, createSnapGallery and
|
||||||
corresponding attributes
|
corresponding attributes
|
||||||
- feature: 34_ESPEasy.pm: plugin neopixelfx/nfx added (Forum #73949)
|
- feature: 34_ESPEasy.pm: plugin neopixelfx/nfx added (Forum #73949)
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
############################################################################################################################################
|
############################################################################################################################################
|
||||||
# Versions History done by DS_Starter & DeeSPe:
|
# Versions History done by DS_Starter & DeeSPe:
|
||||||
#
|
#
|
||||||
|
# 2.22.1 07.08.2017 attribute "suppressAddLogV3" to suppress verbose3-logentries created by DbLog_AddLog
|
||||||
# 2.22.0 25.07.2017 attribute "addStateEvent" added
|
# 2.22.0 25.07.2017 attribute "addStateEvent" added
|
||||||
# 2.21.3 24.07.2017 commandref revised
|
# 2.21.3 24.07.2017 commandref revised
|
||||||
# 2.21.2 19.07.2017 changed readCfg to report more error-messages
|
# 2.21.2 19.07.2017 changed readCfg to report more error-messages
|
||||||
@ -143,7 +144,7 @@ use Blocking;
|
|||||||
use Time::HiRes qw(gettimeofday tv_interval);
|
use Time::HiRes qw(gettimeofday tv_interval);
|
||||||
use Encode qw(encode_utf8);
|
use Encode qw(encode_utf8);
|
||||||
|
|
||||||
my $DbLogVersion = "2.22.0";
|
my $DbLogVersion = "2.22.1";
|
||||||
|
|
||||||
my %columns = ("DEVICE" => 64,
|
my %columns = ("DEVICE" => 64,
|
||||||
"TYPE" => 64,
|
"TYPE" => 64,
|
||||||
@ -182,6 +183,7 @@ sub DbLog_Initialize($)
|
|||||||
"syncInterval ".
|
"syncInterval ".
|
||||||
"noNotifyDev:1,0 ".
|
"noNotifyDev:1,0 ".
|
||||||
"showproctime:1,0 ".
|
"showproctime:1,0 ".
|
||||||
|
"suppressAddLogV3:1,0 ".
|
||||||
"asyncMode:1,0 ".
|
"asyncMode:1,0 ".
|
||||||
"cacheEvents:2,1,0 ".
|
"cacheEvents:2,1,0 ".
|
||||||
"cacheLimit ".
|
"cacheLimit ".
|
||||||
@ -3213,7 +3215,8 @@ sub DbLog_AddLog($$$) {
|
|||||||
($dev_name,$dev_type,$event,$dev_reading,$read_val,$ut) = DbLog_cutCol($hash,$dev_name,$dev_type,$event,$dev_reading,$read_val,$ut);
|
($dev_name,$dev_type,$event,$dev_reading,$read_val,$ut) = DbLog_cutCol($hash,$dev_name,$dev_type,$event,$dev_reading,$read_val,$ut);
|
||||||
|
|
||||||
my $row = ($ts."|".$dev_name."|".$dev_type."|".$event."|".$dev_reading."|".$read_val."|".$ut);
|
my $row = ($ts."|".$dev_name."|".$dev_type."|".$event."|".$dev_reading."|".$read_val."|".$ut);
|
||||||
Log3 $hash->{NAME}, 3, "DbLog $name -> addLog created - TS: $ts, Device: $dev_name, Type: $dev_type, Event: $event, Reading: $dev_reading, Value: $read_val, Unit: $ut";
|
Log3 $hash->{NAME}, 3, "DbLog $name -> addLog created - TS: $ts, Device: $dev_name, Type: $dev_type, Event: $event, Reading: $dev_reading, Value: $read_val, Unit: $ut"
|
||||||
|
if(!AttrVal($name, "suppressAddLogV3",0));
|
||||||
|
|
||||||
if($async) {
|
if($async) {
|
||||||
# asynchoner non-blocking Mode
|
# asynchoner non-blocking Mode
|
||||||
@ -5162,6 +5165,16 @@ sub checkUsePK ($$){
|
|||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
<ul><b>suppressAddLogV3</b>
|
||||||
|
<ul>
|
||||||
|
<code>attr <device> suppressAddLogV3 [1|0]
|
||||||
|
</code><br>
|
||||||
|
|
||||||
|
If set, verbose3-Logfileentries done by the addLog-function will be suppressed. <br>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<br>
|
||||||
|
|
||||||
<ul><b>suppressUndef</b>
|
<ul><b>suppressUndef</b>
|
||||||
<ul>
|
<ul>
|
||||||
<code>
|
<code>
|
||||||
@ -6035,6 +6048,16 @@ sub checkUsePK ($$){
|
|||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
<ul><b>suppressAddLogV3</b>
|
||||||
|
<ul>
|
||||||
|
<code>attr <device> suppressAddLogV3 [1|0]
|
||||||
|
</code><br>
|
||||||
|
|
||||||
|
Wenn gesetzt werden verbose3-Logeinträge durch die addLog-Funktion unterdrückt. <br>
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
<br>
|
||||||
|
|
||||||
<ul><b>suppressUndef</b>
|
<ul><b>suppressUndef</b>
|
||||||
<ul>
|
<ul>
|
||||||
<code>attr <device> ignoreUndef <n>
|
<code>attr <device> ignoreUndef <n>
|
||||||
|
Loading…
Reference in New Issue
Block a user