Commit 318d0b39 authored by Max Kellermann's avatar Max Kellermann

db/simple/Save: move log call to SimpleDatabase::Load()

parent 90a14e14
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "config.h" #include "config.h"
#include "DatabaseSave.hxx" #include "DatabaseSave.hxx"
#include "db/DatabaseLock.hxx" #include "db/DatabaseLock.hxx"
#include "db/DatabaseError.hxx"
#include "Directory.hxx" #include "Directory.hxx"
#include "DirectorySave.hxx" #include "DirectorySave.hxx"
#include "fs/io/BufferedOutputStream.hxx" #include "fs/io/BufferedOutputStream.hxx"
...@@ -30,7 +29,6 @@ ...@@ -30,7 +29,6 @@
#include "fs/Charset.hxx" #include "fs/Charset.hxx"
#include "util/StringCompare.hxx" #include "util/StringCompare.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "Log.hxx"
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -129,8 +127,6 @@ db_load_internal(TextFile &file, Directory &music_root) ...@@ -129,8 +127,6 @@ db_load_internal(TextFile &file, Directory &music_root)
throw std::runtime_error("Tag list mismatch, " throw std::runtime_error("Tag list mismatch, "
"discarding database file"); "discarding database file");
LogDebug(db_domain, "reading DB");
const ScopeDatabaseLock protect; const ScopeDatabaseLock protect;
directory_load(file, music_root); directory_load(file, music_root);
} }
...@@ -150,6 +150,8 @@ SimpleDatabase::Load() ...@@ -150,6 +150,8 @@ SimpleDatabase::Load()
TextFile file(path); TextFile file(path);
LogDebug(simple_db_domain, "reading DB");
db_load_internal(file, *root); db_load_internal(file, *root);
FileInfo fi; FileInfo fi;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment