Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove RunTrackerLogger #11018

Merged
merged 1 commit into from
Oct 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions src/python/pants/goal/run_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,6 @@ def __init__(self, *args, **kwargs):
# Note that multiple threads may share a name (e.g., all the threads in a pool).
self._threadlocal = threading.local()

# A logger facade that logs into this RunTracker.
self._logger = RunTrackerLogger(self)

# For background work. Created lazily if needed.
self._background_root_workunit = None

Expand Down Expand Up @@ -506,22 +503,3 @@ def _get_option_to_record(self, scope, option=None):
raise ValueError(
f"Couldn't find option scope {scope}{option_str} for recording ({e!r})"
)


class RunTrackerLogger:
"""A logger facade that logs into a run tracker."""

def __init__(self, run_tracker):
self._run_tracker = run_tracker

def debug(self, *msg_elements):
self._run_tracker.log(Report.DEBUG, *msg_elements)

def info(self, *msg_elements):
self._run_tracker.log(Report.INFO, *msg_elements)

def warn(self, *msg_elements):
self._run_tracker.log(Report.WARN, *msg_elements)

def error(self, *msg_elements):
self._run_tracker.log(Report.ERROR, *msg_elements)