refactor: Modernize logging in util/asmap.cpp
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -200,7 +200,7 @@ std::vector<bool> DecodeAsmap(fs::path path)
|
|||||||
FILE *filestr = fsbridge::fopen(path, "rb");
|
FILE *filestr = fsbridge::fopen(path, "rb");
|
||||||
AutoFile file{filestr};
|
AutoFile file{filestr};
|
||||||
if (file.IsNull()) {
|
if (file.IsNull()) {
|
||||||
LogPrintf("Failed to open asmap file from disk\n");
|
LogWarning("Failed to open asmap file from disk");
|
||||||
return bits;
|
return bits;
|
||||||
}
|
}
|
||||||
file.seek(0, SEEK_END);
|
file.seek(0, SEEK_END);
|
||||||
@@ -215,7 +215,7 @@ std::vector<bool> DecodeAsmap(fs::path path)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!SanityCheckASMap(bits, 128)) {
|
if (!SanityCheckASMap(bits, 128)) {
|
||||||
LogPrintf("Sanity check of asmap file %s failed\n", fs::quoted(fs::PathToString(path)));
|
LogWarning("Sanity check of asmap file %s failed", fs::quoted(fs::PathToString(path)));
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
return bits;
|
return bits;
|
||||||
|
|||||||
Reference in new issue
Block a user