changeset 26748:09d8fcdc8604

lib-fs: Add fs event category to fs events
author Timo Sirainen <timo.sirainen@open-xchange.com>
date Mon, 02 Dec 2019 19:06:40 +0200
parents 7ea9b78f93e7
children a37c8647f72f
files src/lib-fs/fs-api.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-fs/fs-api.c	Fri Nov 29 17:49:23 2019 +0200
+++ b/src/lib-fs/fs-api.c	Mon Dec 02 19:06:40 2019 +0200
@@ -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 @@
 	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;