mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-12 05:58:26 +00:00
chore(userspace/falco): add_output init check
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
parent
44955004e3
commit
f433b449d9
@ -104,6 +104,10 @@ void falco_outputs::init(bool json_output,
|
|||||||
// Thus it is still safe to call add_output() before any message has been enqueued.
|
// Thus it is still safe to call add_output() before any message has been enqueued.
|
||||||
void falco_outputs::add_output(falco::outputs::config oc)
|
void falco_outputs::add_output(falco::outputs::config oc)
|
||||||
{
|
{
|
||||||
|
if(!m_initialized)
|
||||||
|
{
|
||||||
|
throw falco_exception("cannot add output: falco_outputs not initialized yet");
|
||||||
|
}
|
||||||
|
|
||||||
falco::outputs::abstract_output *oo;
|
falco::outputs::abstract_output *oo;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user