Add string empty check

This commit is contained in:
Ned Wright 2023-12-19 18:23:05 +00:00
parent 62e75b8739
commit b71d772e7a

View File

@ -109,6 +109,7 @@ public:
load(cereal::JSONInputArchive &ar)
{
ar(cereal::make_nvp("Output", stream_name));
if (stream_name.empty()) stream_name = "STDOUT";
if (stream_name != "FOG" && stream_name != "STDOUT" && stream_name.front() != '/') {
stream_name = getLogFilesPathConfig() + "/" + stream_name;
}