diff --git a/etc/cinder/logging_sample.conf b/etc/cinder/logging_sample.conf index 50f713f7d46..03f62019063 100644 --- a/etc/cinder/logging_sample.conf +++ b/etc/cinder/logging_sample.conf @@ -1,8 +1,8 @@ [loggers] -keys = root, cinder +keys = root, cinder, taskflow, cinder_flow_utils [handlers] -keys = stderr, stdout, watchedfile, syslog, null +keys = stderr, stdout, watchedfile, syslog, tasks, null [formatters] keys = context, default @@ -16,6 +16,18 @@ level = INFO handlers = stderr qualname = cinder +# Both of these are used for tracking what cinder and taskflow is doing with +# regard to flows and tasks (and the activity there-in). +[logger_cinder_flow_utils] +level = INFO +handlers = tasks,stderr +qualname = cinder.flow_utils + +[logger_taskflow] +level = INFO +handlers = tasks +qualname = taskflow + [logger_amqplib] level = WARNING handlers = stderr @@ -59,6 +71,11 @@ class = handlers.WatchedFileHandler args = ('cinder.log',) formatter = context +[handler_tasks] +class = handlers.WatchedFileHandler +args = ('tasks.log',) +formatter = context + [handler_syslog] class = handlers.SysLogHandler args = ('/dev/log', handlers.SysLogHandler.LOG_USER)