It seems the load_paste_app method is being called twice from bin/keystone. This causes two log handlers to open the same file, keystone.log, and write the same information to the file.
# Start services
try:
# Load Service API server
conf, app = config.load_paste_app( 'keystone-legacy-auth', options, args)
admin_conf, admin_app = config.load_paste_app( 'admin', options, args)
if I add the options['log_file'] line below, logging returns to "normal" though the log files are exactly the same.
In keystone/common/config.py: 321
try:
# Setup logging early, supplying both the CLI options and the
# configuration mapping from the config file options['log_file'] = "%s.log" % app_name setup_logging(options, conf)
It seems the load_paste_app method is being called twice from bin/keystone. This causes two log handlers to open the same file, keystone.log, and write the same information to the file.
# Start services load_paste_ app(
'keystone- legacy- auth', options, args) load_paste_ app(
'admin' , options, args)
try:
# Load Service API server
conf, app = config.
admin_conf, admin_app = config.
if I add the options['log_file'] line below, logging returns to "normal" though the log files are exactly the same.
In keystone/ common/ config. py: 321
options[ 'log_file' ] = "%s.log" % app_name
setup_ logging( options, conf)
try:
# Setup logging early, supplying both the CLI options and the
# configuration mapping from the config file