Merge "Logs format standardization for LMA component"

This commit is contained in:
Zuul
2019-05-09 20:43:40 +00:00
committed by Gerrit Code Review

View File

@@ -19,7 +19,7 @@ logger = logging.getLogger('OpenStack-Helm DB Init')
logger.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(filename)s - %(lineno)d - %(funcName)s - %(message)s')
# Set the formatter and add the handler
ch.setFormatter(formatter)