Comment 1 for bug 844959

Revision history for this message
Paul Voccio (pvo) wrote :

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)