mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-16 18:44:45 -04:00
Force disconnect when reinitialize Logging
This commit is contained in:
@@ -440,7 +440,7 @@ sub databaseLevel {
|
||||
if ( defined($databaseLevel) ) {
|
||||
$databaseLevel = $this->limit($databaseLevel);
|
||||
if ( $databaseLevel > NOLOG ) {
|
||||
$this->{dbh} = ZoneMinder::Database::zmDbConnect();
|
||||
$this->{dbh} = ZoneMinder::Database::zmDbConnect(1);
|
||||
} elsif ( $databaseLevel <= NOLOG && $this->{databaseLevel} > NOLOG ) {
|
||||
undef($this->{dbh});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user