mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
93_DbLog: V2.21.2, some improvements like get reading 'state' of state-events, timeout increased, change configCheck for DbRep Report_Idx
git-svn-id: https://svn.fhem.de/fhem/trunk@14750 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
08f67f0ca2
commit
fe7d902b1c
@ -2085,12 +2085,12 @@ sub DbLog_readCfg($){
|
||||
|
||||
eval join("\n", @config);
|
||||
|
||||
$hash->{dbconn} = $dbconfig{connection} or $err = "could not read connection";
|
||||
return $err if($err);
|
||||
$hash->{dbuser} = $dbconfig{user} or $err = "could not read user";
|
||||
return $err if($err);
|
||||
$attr{"sec$name"}{secret} = $dbconfig{password} or $err = "could not read password";
|
||||
return $err if($err);
|
||||
return "could not read connection" if (!defined $dbconfig{connection});
|
||||
$hash->{dbconn} = $dbconfig{connection};
|
||||
return "could not read user" if (!defined $dbconfig{user});
|
||||
$hash->{dbuser} = $dbconfig{user};
|
||||
return "could not read password" if (!defined $dbconfig{password});
|
||||
$attr{"sec$name"}{secret} = $dbconfig{password};
|
||||
|
||||
#check the database model
|
||||
if($hash->{dbconn} =~ m/pg:/i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user