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.
This commit is contained in:
Max Kellermann
2020-09-23 12:54:15 +02:00
parent e3106a019d
commit c843bce9f5
18 changed files with 60 additions and 58 deletions

View File

@@ -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)) {

View File

@@ -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;

View File

@@ -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());
}

View File

@@ -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",