a0274f56ee97ca783e1ff9c5c212454457799f00,poseidon/helpers/log.py,Logger,Logger_1,#,20

Before Change


    except Exception as e:
        use_file_logger = False
        logger.warning(
            "Unable to setup Poseidon logger because: {0}".format(str(e)))

    if use_file_logger:
        // set the poseidon logger to log to file

After Change



    // define a Handler which writes INFO messages or higher to the sys.stderr
    console = logging.StreamHandler()
    console.setLevel(logging.INFO)
    // set a format which is simpler for console use
    formatter = logging.Formatter("[%(levelname)s] %(name)s - %(message)s")
    // tell the handler to use this format
    console.setFormatter(formatter)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: CyberReboot/poseidon
Commit Name: a0274f56ee97ca783e1ff9c5c212454457799f00
Time: 2018-12-11
Author: clewis@iqt.org
File Name: poseidon/helpers/log.py
Class Name: Logger
Method Name: Logger_1


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: a156be457c3f7d68bc98e4505871d14cd1c45c53
Time: 2017-04-05
Author: jonwayne@google.com
File Name: language/ocr_nl/main_test.py
Class Name:
Method Name: test_main


Project Name: pfnet/optuna
Commit Name: 504233bfb7ab06b36fa7b726dca9384e22703127
Time: 2020-01-31
Author: masaki.kozuki.2014@gmail.com
File Name: optuna/progress_bar.py
Class Name: _ProgressBar
Method Name: __init__