Skip to content

Commit

Permalink
stepreporter: deprecate it
Browse files Browse the repository at this point in the history
The StepReporter should be replaced by the StepLogger and basicConfig
from labgrid.logging. It uses the python logging infrastructure and a
better output formatting.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
  • Loading branch information
Emantor committed Apr 28, 2023
1 parent 8c1a543 commit a3df4e6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions labgrid/stepreporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ def __init__(self):
@classmethod
def start(cls):
"""starts the StepReporter"""
from warnings import warn
warn(
"""
StepLogger is deprecated, use the StepLogger and basicConfig from labgrid.logging
instead which integrates with the python logging infrastructure.
""",
DeprecationWarning,
stacklevel=2,
)
assert not cls._started
steps.subscribe(cls.notify)
cls._started = True
Expand Down

0 comments on commit a3df4e6

Please sign in to comment.