Skip to content

Commit a992f88

Browse files
committed
Removing exess logger
1 parent dacb09b commit a992f88

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nodestream/cli/operations/run_pipeline.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ def create_progress_reporter(
123123
) -> PipelineProgressReporter:
124124
indicator = self.get_progress_indicator(command, pipeline_name)
125125
return PipelineProgressReporter(
126-
logger=indicator.logger,
127126
reporting_frequency=int(command.option("reporting-frequency")),
128127
callback=indicator.progress_callback,
129128
on_start_callback=indicator.on_start,
@@ -136,7 +135,6 @@ class ProgressIndicator:
136135
def __init__(self, command: NodestreamCommand, pipeline_name: str) -> None:
137136
self.command = command
138137
self.pipeline_name = pipeline_name
139-
self.logger = getLogger()
140138

141139
def on_start(self):
142140
pass
@@ -185,6 +183,7 @@ def on_fatal_error(self, exception: Exception):
185183
class JsonProgressIndicator(ProgressIndicator):
186184
def __init__(self, command: NodestreamCommand, pipeline_name: str) -> None:
187185
super().__init__(command, pipeline_name)
186+
self.logger = getLogger()
188187
self.exception = None
189188

190189
def on_start(self):

0 commit comments

Comments
 (0)