Skip to content

Commit 2abb469

Browse files
committed
Ignore "Available disk space for logs at server startup is too low" for non-regular files used for logs
Typical examples are: - /dev/null - /dev/stdout - /dev/stderr Note, that we don't need to check that the file exists, since logger initialized earlier.
1 parent 82b1ca0 commit 2abb469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programs/server/Server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ void sanityChecks(Server & server)
790790

791791
try
792792
{
793-
if (!logs_path.empty())
793+
if (!logs_path.empty() && fs::is_regular_file(logs_path))
794794
{
795795
auto logs_parent = fs::path(logs_path).parent_path();
796796
if (!enoughSpaceInDirectory(logs_parent, 1ull << 30))

0 commit comments

Comments
 (0)