From 5ff08e01634d1ca3f916c79f64d1d88e06afe348 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Mon, 8 Aug 2016 22:10:30 +0200 Subject: [PATCH] Delay debugfile-creation to suppress needless creation if not in debugmode * bump version to 0.10.3 --- setup.py | 2 +- tsstats/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 5dcab56..5982b1e 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='tsstats', - version='0.10.2', + version='0.10.3', author='Thor77', author_email='thor77@thor77.org', description='A simple Teamspeak stats-generator', diff --git a/tsstats/__init__.py b/tsstats/__init__.py index 3b027f8..0092454 100644 --- a/tsstats/__init__.py +++ b/tsstats/__init__.py @@ -5,7 +5,7 @@ import logging logger = logging.getLogger('tsstats') logger.setLevel(logging.INFO) -fh = logging.FileHandler('debug.txt', 'w') +fh = logging.FileHandler('debug.txt', 'w', delay=True) fh.setLevel(logging.DEBUG) ch = logging.StreamHandler()