Commit 4581fa7f authored by Guillaume Seguin's avatar Guillaume Seguin

Resetup logging after setting up Tee in pronterface

parent c6c0dbe5
......@@ -28,7 +28,8 @@ import subprocess
import shlex
import glob
from printrun.printrun_utils import install_locale, RemainingTimeEstimator
from printrun.printrun_utils import install_locale, \
RemainingTimeEstimator, setup_logging
install_locale('pronterface')
try:
......@@ -70,6 +71,7 @@ class Tee(object):
def __init__(self, target):
self.stdout = sys.stdout
sys.stdout = self
setup_logging(sys.stdout)
self.target = target
def __del__(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment