mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 05:06:27 +08:00
event: include handler name in event log output
When there are multiple event handlers for a single event, we would print the same log statement twice. Let's add the function name to make this less confusing.
This commit is contained in:
parent
0db10056e7
commit
0b6eab4ec3
@ -304,7 +304,8 @@ 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());
|
||||
FLOGF(event, L"Firing event '%ls' to handler '%ls'", event.desc.str_param1.c_str(),
|
||||
handler->function_name.c_str());
|
||||
block_t *b = parser.push_block(block_t::event_block(event));
|
||||
parser.eval(buffer, io_chain_t());
|
||||
parser.pop_block(b);
|
||||
|
Loading…
x
Reference in New Issue
Block a user