mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-06 19:29:09 +00:00
whitespace
This commit is contained in:
parent
5f43446bfa
commit
1a70d12525
@ -118,13 +118,13 @@ captureinfo do_inspect(sinsp* inspector,
|
|||||||
}
|
}
|
||||||
|
|
||||||
formatter = formats->lookup_formatter(ev->get_check_id());
|
formatter = formats->lookup_formatter(ev->get_check_id());
|
||||||
if (!formatter)
|
if(!formatter)
|
||||||
{
|
{
|
||||||
throw sinsp_exception("Error: No formatter for event with id %d " + to_string(ev->get_check_id()));
|
throw sinsp_exception("Error: No formatter for event with id %d " + to_string(ev->get_check_id()));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool has_all = formatter->tostring(ev, &line);
|
bool has_all = formatter->tostring(ev, &line);
|
||||||
if (!has_all) {
|
if(!has_all) {
|
||||||
cout << "(missing fields) ";
|
cout << "(missing fields) ";
|
||||||
}
|
}
|
||||||
cout << line;
|
cout << line;
|
||||||
@ -243,7 +243,7 @@ int digwatch_init(int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rules_file.size() == 0) {
|
if(rules_file.size() == 0) {
|
||||||
usage();
|
usage();
|
||||||
result = EXIT_FAILURE;
|
result = EXIT_FAILURE;
|
||||||
goto exit;
|
goto exit;
|
||||||
@ -252,13 +252,13 @@ int digwatch_init(int argc, char **argv)
|
|||||||
|
|
||||||
//
|
//
|
||||||
char* env_lua_dir = getenv("DIGWATCH_LUA_DIR");
|
char* env_lua_dir = getenv("DIGWATCH_LUA_DIR");
|
||||||
if (env_lua_dir)
|
if(env_lua_dir)
|
||||||
{
|
{
|
||||||
lua_dir = string(env_lua_dir);
|
lua_dir = string(env_lua_dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
trim(lua_main_filename);
|
trim(lua_main_filename);
|
||||||
if (lua_main_filename.size() == 0)
|
if(lua_main_filename.size() == 0)
|
||||||
{
|
{
|
||||||
lua_main_filename = lua_dir + DIGWATCH_LUA_MAIN;
|
lua_main_filename = lua_dir + DIGWATCH_LUA_MAIN;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user