Add event flog

I needed this, and it should be there.

[ci skip]
This commit is contained in:
Fabian Homborg 2020-10-06 16:53:25 +02:00
parent 04cb23a038
commit 289bce2f25
2 changed files with 3 additions and 0 deletions

View File

@ -265,6 +265,7 @@ static void event_fire_internal(parser_t &parser, const event_t &event) {
scoped_push<bool> interactive{&ld.is_interactive, false};
auto prev_statuses = parser.get_last_statuses();
FLOGF(event, L"Firing event '%ls'", event.desc.str_param1.c_str());
block_t *b = parser.push_block(block_t::event_block(event));
parser.eval(buffer, io_chain_t());
parser.pop_block(b);

View File

@ -56,6 +56,8 @@ class category_list_t {
category_t config{L"config", L"Finding and reading configuration"};
category_t event{L"event", L"Firing events"};
category_t exec_job_status{L"exec-job-status", L"Jobs changing status"};
category_t exec_job_exec{L"exec-job-exec", L"Jobs being executed"};