2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

93_DbLog: contrib 5.0.0

git-svn-id: https://svn.fhem.de/fhem/trunk@26767 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2022-12-02 19:51:53 +00:00
parent e951236a81
commit db5958b83b

View File

@ -585,6 +585,10 @@ sub DbLog_Attr {
if ($init_done == 1) {
DbLog_SBP_dbDisconnect ($hash, 1); # DB Verbindung und Verbindungsdaten im SubProzess löschen
my $rst = DbLog_SBP_sendConnectionData ($hash);
if (!$rst) {
Log3 ($name, 3, "DbLog $name - new commitMode transmitted to SubProces");
}
}
}
@ -2558,7 +2562,7 @@ sub DbLog_SBP_onRun {
## Vorbereitungen
#############################################################################
$attr{$name}{verbose} = $verbose; # verbose Level übergeben
$attr{$name}{verbose} = $verbose if(defined $verbose); # verbose Level übergeben
my $bst = [gettimeofday]; # Background-Startzeit
@ -3522,7 +3526,8 @@ sub DbLog_SBP_sendConnectionData {
$memc->{dbuser} = $hash->{dbuser};
$memc->{dbpassword} = $attr{"sec$name"}{secret};
$memc->{model} = $hash->{MODEL};
$memc->{cm} = AttrVal($name, 'commitMode', $dblog_cmdef);
$memc->{cm} = AttrVal ($name, 'commitMode', $dblog_cmdef);
$memc->{verbose} = AttrVal ($name, 'verbose', 3);
$memc->{utf8} = defined ($hash->{UTF8}) ? $hash->{UTF8} : 0;
$memc->{history} = $hash->{HELPER}{TH};
$memc->{current} = $hash->{HELPER}{TC};