Skip to content

Commit

Permalink
Only initialize DB debugging once the DB itself has been initialized,…
Browse files Browse the repository at this point in the history
… or the scanner would never log SQL statements.
  • Loading branch information
mherger committed Sep 22, 2023
1 parent 9f1fa06 commit a063401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Slim/Schema.pm
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ sub init {
# Use our debug and stats class to get logging and perfmon for db queries
$class->storage->debugobj('Slim::Schema::Debug');

$class->updateDebug;

# Bug 17609, avoid a possible locking issue by ensuring VA object is up to date at init time
# instead of waiting until the first time it's called, for example through artistsQuery.
$class->variousArtistsObject;
Expand Down Expand Up @@ -249,6 +247,8 @@ sub init {
}

$initialized = 1;

$class->updateDebug;
}

sub hasLibrary {
Expand Down

0 comments on commit a063401

Please sign in to comment.