mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 19:24:26 +03:00
Add string empty check
This commit is contained in:
@@ -109,6 +109,7 @@ public:
|
|||||||
load(cereal::JSONInputArchive &ar)
|
load(cereal::JSONInputArchive &ar)
|
||||||
{
|
{
|
||||||
ar(cereal::make_nvp("Output", stream_name));
|
ar(cereal::make_nvp("Output", stream_name));
|
||||||
|
if (stream_name.empty()) stream_name = "STDOUT";
|
||||||
if (stream_name != "FOG" && stream_name != "STDOUT" && stream_name.front() != '/') {
|
if (stream_name != "FOG" && stream_name != "STDOUT" && stream_name.front() != '/') {
|
||||||
stream_name = getLogFilesPathConfig() + "/" + stream_name;
|
stream_name = getLogFilesPathConfig() + "/" + stream_name;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user