logs.cpp: fix regression (#12995)

Fixes #12994
This commit is contained in:
Elad Ashkenazi 2022-11-29 21:56:18 +02:00 committed by GitHub
parent e9e139c364
commit 630edde10f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -497,7 +497,7 @@ int main(int argc, char** argv)
fs::device_stat stats{};
if (!fs::statfs(fs::get_cache_dir(), stats) || stats.avail_free < 128 * 1024 * 1024)
{
report_fatal_error(fmt::format("Not enough free space (%f KB)", stats.avail_free / 1000000.));
std::fprintf(stderr, "Not enough free space for logs (%f KB)", stats.avail_free / 1000000.);
}
// Limit log size to ~25% of free space