Skip to content

Commit

Permalink
change log name and set both logging to DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
willgraf committed Mar 22, 2019
1 parent a6e3c21 commit 61458ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
import autoscaler


def initialize_logger(debug_mode=False):
def initialize_logger(debug_mode=True):
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)

formatter = logging.Formatter('[%(asctime)s]:[%(levelname)s]:[%(name)s]: %(message)s')
console = logging.StreamHandler(stream=sys.stdout)
console.setFormatter(formatter)

fh = logging.FileHandler('redis-janitor.log')
fh = logging.FileHandler('autoscaler.log')
fh.setFormatter(formatter)

if debug_mode:
Expand Down

0 comments on commit 61458ad

Please sign in to comment.