VOL-402: Update fluentd log for chameleon to use basic formatter
Change-Id: Iad7a803c72e752b4340151a79578a9e5dfb9a6d6
diff --git a/chameleon.production.yml b/chameleon.production.yml
index 291d4ab..02a89c8 100644
--- a/chameleon.production.yml
+++ b/chameleon.production.yml
@@ -13,6 +13,9 @@
level: '%(levelname)s'
hostname: '%(hostname)s'
where: '%(module)s.%(funcName)s'
+ fluent_default:
+ format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s'
+ datefmt: '%Y%m%dT%H%M%S'
handlers:
fluent:
@@ -20,7 +23,10 @@
host: localhost
port: 24224
tag: chameleon.logging
- formatter: fluent_fmt
+ # Since fluent formatter output an exception with grpc data, use
+ # a basic formatter for now.
+ # formatter: fluent_fmt
+ formatter: fluent_default
level: INFO
null:
class: logging.NullHandler
diff --git a/chameleon.yml b/chameleon.yml
index 8bcbe03..244245c 100644
--- a/chameleon.yml
+++ b/chameleon.yml
@@ -13,6 +13,9 @@
level: '%(levelname)s'
hostname: '%(hostname)s'
where: '%(module)s.%(funcName)s'
+ fluent_default:
+ format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s'
+ datefmt: '%Y%m%dT%H%M%S'
handlers:
console:
@@ -25,7 +28,10 @@
host: localhost
port: 24224
tag: chameleon.logging
- formatter: fluent_fmt
+ # Since fluent formatter output an exception with grpc data, use
+ # a basic formatter for now.
+ # formatter: fluent_fmt
+ formatter: fluent_default
level: DEBUG
localRotatingFile:
class: logging.handlers.RotatingFileHandler