idmapd: Turn down the verbosity in flush_inotify()
Subsystems (2)
PATCH 1/1 idmapd: Turn down the verbosity in flush_inotify()
So idmapd does not flood the logs with messages
nobody will understand, only print the message
with verbose is set.
Signed-off-by Steve Dickson <[email protected]>
--- utils/idmapd/idmapd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
utils/idmapd/idmapd.c +2 -1
@@ -500,7 +500,8 @@ flush_inotify(int fd) ptr += sizeof(struct inotify_event) + ev->len) { ev = (const struct inotify_event *)ptr; -xlog_warn ("pipefs inotify: wd=%i, mask=0x%08x, len=%i, name=%s" , +if (verbose >1 ) +xlog_warn ("pipefs inotify: wd=%i, mask=0x%08x, len=%i, name=%s" , ev->wd, ev->mask, ev->len, ev->len ? ev->name :"" ); } }
Signature · 1 line
2.24.1
Quoted 5 lines · Steve Dickson
So idmapd does not flood the logs with messages
nobody will understand, only print the message
with verbose is set.Signed-off-by Steve Dickson <[email protected]>
Committed...
steved.
Quoted 19 lines
--- utils/idmapd/idmapd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)utils/idmapd/idmapd.c +2
-1@@ -500,7 +500,8 @@ flush_inotify(int fd) ptr += sizeof(struct inotify_event) + ev->len) { ev = (const struct inotify_event *)ptr; -xlog_warn ("pipefs inotify: wd=%i, mask=0x%08x, len=%i, name=%s" , +if (verbose >1 ) +xlog_warn ("pipefs inotify: wd=%i, mask=0x%08x, len=%i, name=%s" , ev->wd, ev->mask, ev->len, ev->len ? ev->name :"" ); } }