From e123edeebf1559731b451cec0fd3c06ff974bbf2 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Tue, 23 May 2017 15:53:48 -0400 Subject: [PATCH] Add global_request_id to systemd logs With cinder supporting this now, start logging global_request_id in systemd logs. It will be None for all the services until the work starts coming together, but it is safe to do. Change-Id: Ic6ba1a42da88c03e43d89658b453f6a0b353e0db --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 52a82faf0a..ebc4c282d3 100644 --- a/functions +++ b/functions @@ -625,7 +625,7 @@ function setup_systemd_logging { fi iniset $conf_file $conf_section logging_debug_format_suffix "{{${pidstr}%(funcName)s %(pathname)s:%(lineno)d}}" - iniset $conf_file $conf_section logging_context_format_string "%(color)s%(levelname)s %(name)s [%(request_id)s %(project_name)s %(user_name)s%(color)s] %(instance)s%(color)s%(message)s" + iniset $conf_file $conf_section logging_context_format_string "%(color)s%(levelname)s %(name)s [%(global_request_id)s %(request_id)s %(project_name)s %(user_name)s%(color)s] %(instance)s%(color)s%(message)s" iniset $conf_file $conf_section logging_default_format_string "%(color)s%(levelname)s %(name)s [-%(color)s] %(instance)s%(color)s%(message)s" iniset $conf_file $conf_section logging_exception_prefix "ERROR %(name)s %(instance)s" }