Skip to content

Commit 99edb4d

Browse files
Merge pull request #1447 from Bastian-Krause/bst/autoinstall-improvements
autoinstall/main: use labgrid's StepLogger/basicConfig
2 parents fe10000 + fb5e982 commit 99edb4d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

labgrid/autoinstall/main.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
import ast
33
import argparse
44
import logging
5-
import sys
65
import multiprocessing
76
import textwrap
87
from time import sleep
98

109
from .. import Environment, target_factory
11-
from ..stepreporter import StepReporter
10+
from ..logging import basicConfig, StepLogger
1211
from ..exceptions import NoResourceFoundError
1312

1413

@@ -177,11 +176,7 @@ def join(self):
177176
handler.join()
178177

179178
def main():
180-
logging.basicConfig(
181-
level=logging.INFO,
182-
format='%(levelname)7s %(name)-20s %(message)s',
183-
stream=sys.stderr,
184-
)
179+
basicConfig(level=logging.INFO)
185180

186181
parser = argparse.ArgumentParser()
187182
parser.add_argument(
@@ -210,7 +205,7 @@ def main():
210205

211206
env = Environment(config_file=args.config)
212207

213-
StepReporter.start()
208+
StepLogger.start()
214209

215210
manager = Manager(env, args)
216211
if not manager.configure():

0 commit comments

Comments
 (0)