@@ -56,7 +56,7 @@ std::vector<std::pair<fs::path, std::string>> ListDatabases(const fs::path& wall
56
56
}
57
57
}
58
58
} catch (const std::exception& e) {
59
- LogPrintf ( " %s: Error scanning %s: %s \n " , __func__ , fs::PathToString (it->path ()), e. what ( ));
59
+ LogWarning ( " Error while scanning wallet dir item: %s [%s]. " , e. what () , fs::PathToString (it->path ()));
60
60
it.disable_recursion_pending ();
61
61
}
62
62
}
@@ -99,7 +99,7 @@ bool IsBDBFile(const fs::path& path)
99
99
// This check also prevents opening lock files.
100
100
std::error_code ec;
101
101
auto size = fs::file_size (path, ec);
102
- if (ec) LogPrintf ( " %s : %s %s \n " , __func__ , ec.message (), fs::PathToString (path));
102
+ if (ec) LogWarning ( " Error reading file_size : %s [%s] " , ec.message (), fs::PathToString (path));
103
103
if (size < 4096 ) return false ;
104
104
105
105
std::ifstream file{path, std::ios::binary};
@@ -123,7 +123,7 @@ bool IsSQLiteFile(const fs::path& path)
123
123
// A SQLite Database file is at least 512 bytes.
124
124
std::error_code ec;
125
125
auto size = fs::file_size (path, ec);
126
- if (ec) LogPrintf ( " %s : %s %s \n " , __func__ , ec.message (), fs::PathToString (path));
126
+ if (ec) LogWarning ( " Error reading file_size : %s [%s] " , ec.message (), fs::PathToString (path));
127
127
if (size < 512 ) return false ;
128
128
129
129
std::ifstream file{path, std::ios::binary};
0 commit comments