mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-03 07:34:53 +00:00
Log modified copy instead of original message.
Signed-off-by: Shane Lawrence <shane@lawrence.dev>
This commit is contained in:
@@ -134,7 +134,7 @@ void falco_logger::log(int priority, const string msg)
|
|||||||
if(gtm != NULL &&
|
if(gtm != NULL &&
|
||||||
(strftime(buf, sizeof(buf), "%FT%T%z", gtm) != 0))
|
(strftime(buf, sizeof(buf), "%FT%T%z", gtm) != 0))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s: %s", buf, msg.c_str());
|
fprintf(stderr, "%s: %s", buf, copy.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -151,7 +151,7 @@ void falco_logger::log(int priority, const string msg)
|
|||||||
{
|
{
|
||||||
tstr = "N/A";
|
tstr = "N/A";
|
||||||
}
|
}
|
||||||
fprintf(stderr, "%s: %s", tstr.c_str(), msg.c_str());
|
fprintf(stderr, "%s: %s", tstr.c_str(), copy.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user