add paths

This commit is contained in:
Sergei Trifonov 2022-04-21 07:45:08 +02:00
parent a2365c5c83
commit 69403840e2

View File

@ -590,12 +590,13 @@ static void sanityChecks(Server * server)
server->context()->addWarningMessage("Available memory at server startup is too low (2GiB).");
if (!enoughSpaceInDirectory(data_path, 1ull << 30))
server->context()->addWarningMessage("Available disk space for data at server startup is too low (1GiB).");
server->context()->addWarningMessage("Available disk space for data at server startup is too low (1GiB): " + data_path);
if (!logs_path.empty())
{
if (!enoughSpaceInDirectory(fs::path(logs_path).parent_path(), 1ull << 30))
server->context()->addWarningMessage("Available disk space for logs at server startup is too low (1GiB).");
auto logs_parent = fs::path(logs_path).parent_path();
if (!enoughSpaceInDirectory(logs_parent, 1ull << 30))
server->context()->addWarningMessage("Available disk space for logs at server startup is too low (1GiB): " + logs_parent);
}
}
catch (...)