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:
@@ -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)) {
|
||||
|
@@ -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;
|
||||
|
@@ -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());
|
||||
}
|
||||
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user