Skip to content

Commit 5533156

Browse files
committed
better logging
1 parent b793489 commit 5533156

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

programs/server/Server.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -860,11 +860,14 @@ void loadStartupScripts(const Poco::Util::AbstractConfiguration & config, Contex
860860
{
861861
if (result != "0\n" && result != "false\n")
862862
{
863-
LOG_DEBUG(
864-
log,
865-
"Skipping startup script as condition query returned value `{}` "
866-
"which can't be interpreted as a boolean (`0`, `false`, `1`, `true`).",
867-
result);
863+
if (result.empty())
864+
LOG_DEBUG(log, "Skipping startup script as condition query returned empty value.");
865+
else
866+
LOG_DEBUG(
867+
log,
868+
"Skipping startup script as condition query returned value `{}` "
869+
"which can't be interpreted as a boolean (`0`, `false`, `1`, `true`).",
870+
result);
868871
skipped_startup_scripts.emplace_back(full_prefix);
869872
}
870873
continue;

0 commit comments

Comments
 (0)