From 3a96fcc53f7043ea7c73296b6bf5ad9df64ae2e1 Mon Sep 17 00:00:00 2001
From: Takashi Kajinami <tkajinam@redhat.com>
Date: Sat, 16 Apr 2022 00:39:58 +0900
Subject: [PATCH] Remove redundant override of logging_context_format_string

The target value is exactly same as the default defined in oslo.log,
thus this override is just redundant.

Change-Id: Ib386df2d8abf561c5b1c266f4c64d544e93c5d62
---
 ec2api/config.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/ec2api/config.py b/ec2api/config.py
index 97845cee..d9779083 100644
--- a/ec2api/config.py
+++ b/ec2api/config.py
@@ -32,14 +32,9 @@ _DEFAULT_LOG_LEVELS = ['amqp=WARN', 'amqplib=WARN', 'boto=WARN',
                        'keystonemiddleware=WARN', 'routes.middleware=WARN',
                        'stevedore=WARN', 'keystoneclient.auth=WARN']
 
-_DEFAULT_LOGGING_CONTEXT_FORMAT = ('%(asctime)s.%(msecs)03d %(process)d '
-                                   '%(levelname)s %(name)s [%(request_id)s '
-                                   '%(user_identity)s] %(instance)s'
-                                   '%(message)s')
-
 
 def parse_args(argv, default_config_files=None):
-    log.set_defaults(_DEFAULT_LOGGING_CONTEXT_FORMAT, _DEFAULT_LOG_LEVELS)
+    log.set_defaults(default_log_levels=_DEFAULT_LOG_LEVELS)
     log.register_options(CONF)
     options.set_defaults(CONF, connection=_DEFAULT_SQL_CONNECTION)