mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-04 08:04:49 +00:00
update(falco): always enable rules warnings
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
This commit is contained in:
@@ -79,10 +79,9 @@ falco::app::run_result falco::app::actions::load_rules_files(falco::app::state&
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If verbose is true, also print any warnings
|
if(res->has_warnings())
|
||||||
if(s.options.verbose && res->has_warnings())
|
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s\n", res->as_string(true, rc).c_str());
|
falco_logger::log(falco_logger::level::WARNING,res->as_string(true, rc) + "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -114,12 +114,7 @@ falco::app::run_result falco::app::actions::validate_rules_files(falco::app::sta
|
|||||||
// file was ok with warnings, without actually
|
// file was ok with warnings, without actually
|
||||||
// printing the warnings.
|
// printing the warnings.
|
||||||
summary += filename + ": Ok, with warnings";
|
summary += filename + ": Ok, with warnings";
|
||||||
|
falco_logger::log(falco_logger::level::WARNING, res->as_string(true, rc) + "\n");
|
||||||
// If verbose is true, print the warnings now.
|
|
||||||
if(s.options.verbose)
|
|
||||||
{
|
|
||||||
fprintf(stderr, "%s\n", res->as_string(true, rc).c_str());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user