summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-09-23 12:54:15 +0200
committerMax Kellermann <max@musicpd.org>2020-09-23 14:22:33 +0200
commitc843bce9f5f4d7e56c89e343eabc37d554701a5e (patch)
tree2836bd237c6745da883cb4930d15d68d61884da2 /src/db
parente3106a019d2909c2fdc9fd0e29e60389eb87761d (diff)
LogLevel: rename DEFAULT to NOTICE
"DEFAULT" is a bad name - all it says is that it's the default value, but it doesn't say what it means. The name NOTICE mimics the syslog level.
Diffstat (limited to 'src/db')
-rw-r--r--src/db/update/Archive.cxx4
-rw-r--r--src/db/update/Container.cxx6
-rw-r--r--src/db/update/Remove.cxx2
-rw-r--r--src/db/update/UpdateSong.cxx8
4 files changed, 10 insertions, 10 deletions
diff --git a/src/db/update/Archive.cxx b/src/db/update/Archive.cxx
index 53bb8660d..9b9531ec4 100644
--- a/src/db/update/Archive.cxx
+++ b/src/db/update/Archive.cxx
@@ -82,8 +82,8 @@ UpdateWalk::UpdateArchiveTree(ArchiveFile &archive, Directory &directory,
}
modified = true;
- FormatDefault(update_domain, "added %s/%s",
- directory.GetPath(), name);
+ FormatNotice(update_domain, "added %s/%s",
+ directory.GetPath(), name);
}
} else {
if (!song->UpdateFileInArchive(archive)) {
diff --git a/src/db/update/Container.cxx b/src/db/update/Container.cxx
index 2dd1571cd..410ddee62 100644
--- a/src/db/update/Container.cxx
+++ b/src/db/update/Container.cxx
@@ -75,9 +75,9 @@ UpdateWalk::UpdateContainerFile(Directory &directory,
// shouldn't be necessary but it's there..
song->mtime = info.mtime;
- FormatDefault(update_domain, "added %s/%s",
- contdir->GetPath(),
- song->filename.c_str());
+ FormatNotice(update_domain, "added %s/%s",
+ contdir->GetPath(),
+ song->filename.c_str());
{
const ScopeDatabaseLock protect;
diff --git a/src/db/update/Remove.cxx b/src/db/update/Remove.cxx
index 75ded4a0c..c1e61d1e1 100644
--- a/src/db/update/Remove.cxx
+++ b/src/db/update/Remove.cxx
@@ -41,7 +41,7 @@ UpdateRemoveService::RunDeferred() noexcept
}
for (const auto &uri : copy) {
- FormatDefault(update_domain, "removing %s", uri.c_str());
+ FormatNotice(update_domain, "removing %s", uri.c_str());
listener.OnDatabaseSongRemoved(uri.c_str());
}
diff --git a/src/db/update/UpdateSong.cxx b/src/db/update/UpdateSong.cxx
index f3b4d9362..f373cb2c7 100644
--- a/src/db/update/UpdateSong.cxx
+++ b/src/db/update/UpdateSong.cxx
@@ -76,11 +76,11 @@ try {
}
modified = true;
- FormatDefault(update_domain, "added %s/%s",
- directory.GetPath(), name);
+ FormatNotice(update_domain, "added %s/%s",
+ directory.GetPath(), name);
} else if (info.mtime != song->mtime || walk_discard) {
- FormatDefault(update_domain, "updating %s/%s",
- directory.GetPath(), name);
+ FormatNotice(update_domain, "updating %s/%s",
+ directory.GetPath(), name);
if (!song->UpdateFile(storage)) {
FormatDebug(update_domain,
"deleting unrecognized file %s/%s",