<commit_before>import publicprize.controller as ppc
import logging
import logging.handlers;

# Needs to be explicit
ppc.init()
app = ppc.app()

handler = logging.handlers.RotatingFileHandler(
    '/var/log/publicprize/app.log', maxBytes=10000, backupCount=1)
handler.setLevel(logging.INFO)
handler.setFormatter(logging.Formatter(
        '[%(asctime)s] {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s'))
app.logger.addHandler(handler)
<commit_msg>need to setLevel on both handler and app.logger<commit_after>import publicprize.controller as ppc
import logging
import logging.handlers;

# Needs to be explicit
ppc.init()
app = ppc.app()

handler = logging.handlers.RotatingFileHandler(
    '/var/log/publicprize/app.log', maxBytes=10000, backupCount=1)
handler.setLevel(logging.INFO)
handler.setFormatter(logging.Formatter(
        '[%(asctime)s] {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s'))
app.logger.addHandler(handler)
app.logger.setLevel(logging.INFO)

{'fraction_non_alphanumeric': 0.1437371663244353, 'fraction_numerical': 0.012320328542094456, 'mean_word_length': 6.014388489208633, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5636488', 'n_tokens_mistral': 349, 'n_tokens_neox': 334, 'n_words': 62}