Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Modify logger level in es cache cron script
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnbus committed May 29, 2018
1 parent 6885ed2 commit 95503df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cron/esCacheMaint.py
Expand Up @@ -9,6 +9,7 @@
import random
import requests
import sys
import logging
from configlib import getConfig, OptionParser
from datetime import datetime, date, timedelta

Expand Down Expand Up @@ -105,6 +106,7 @@ def initConfig():
parser.add_option("-c", dest='configfile', default=sys.argv[0].replace('.py', '.conf'), help="configuration file to use")
(options, args) = parser.parse_args()
initConfig()
logger.level = logging.WARNING
logger.debug('starting')

main()

0 comments on commit 95503df

Please sign in to comment.