mirror of
https://github.com/gluster/gluster-block.git
synced 2026-02-05 12:45:33 +01:00
Problem: ------- Currently cli process Loads Config on every operation in cli process context. Hence log msgs: DEBUG: logLevel now is TRACE [at utils.c+50:<glusterBlockSetLogLevel>] DEBUG: glfsLruCount now is 5 [at lru.c+43:<glusterBlockSetLruCount>] are dumped to gluster-blockd.log on every single cli operation. Apart from the inotify triggers to Load Config. Solution: -------- Print the Key:Value config file parameters to respective log files based on the process context. That is, - if cli process calls Load Config, then dump the logs to gluster-block-cli.log (only DEBUG or higher level) - if dameon process calls Load Config ( via DynConfig thread), then dump the logs to gluster-blockd.log (in CRIT level) Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com> Reviewed-by: Xiubo Li <xiubli@redhat.com> Tested-by: Xiubo Li <xiubli@redhat.com>