From: Timo Sirainen Date: Mon, 2 Dec 2019 17:06:40 +0000 (+0200) Subject: lib-fs: Add fs event category to fs events X-Git-Tag: 2.3.10~201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62cf35c5add3badede123e0da8df4200d3a3cf5f;p=thirdparty%2Fdovecot%2Fcore.git lib-fs: Add fs event category to fs events --- diff --git a/src/lib-fs/fs-api.c b/src/lib-fs/fs-api.c index 2bc43110f1..739927895d 100644 --- a/src/lib-fs/fs-api.c +++ b/src/lib-fs/fs-api.c @@ -14,6 +14,10 @@ #include "istream-fs-stats.h" #include "fs-api-private.h" +static struct event_category event_category_fs = { + .name = "fs" +}; + struct fs_api_module_register fs_api_module_register = { 0 }; static struct module *fs_modules = NULL; @@ -135,6 +139,7 @@ static struct event *fs_create_event(struct fs *fs, struct event *parent) struct event *event; event = event_create(parent); + event_add_category(event, &event_category_fs); event_set_append_log_prefix(event, t_strdup_printf("fs-%s: ", fs->name)); return event;