Skip to content

Commit

Permalink
Couple more cleanups to logging setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gazpachoking committed Sep 25, 2014
1 parent d133ac5 commit 47b6b36
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions flexget/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

import logging
import logging.handlers
import re
import string
import sys
import threading
import warnings

Expand Down Expand Up @@ -78,7 +76,7 @@ def set_task(task):
def initialize(unit_test=False):
"""Prepare logging.
"""
global _logging_configured, _buff_handler
global _logging_configured, _logging_started, _buff_handler

if _logging_configured:
return
Expand All @@ -91,6 +89,7 @@ def initialize(unit_test=False):
# with unit test we want a bit simpler setup
if unit_test:
logging.basicConfig()
_logging_started = True
return

# Store any log messages in a buffer until we `start` function is run
Expand Down

0 comments on commit 47b6b36

Please sign in to comment.