Skip to content

Commit

Permalink
Update src/stpipe/log.py
Browse files Browse the repository at this point in the history
Co-authored-by: Zach Burnett <[email protected]>
  • Loading branch information
braingram and zacharyburnett authored Jul 24, 2024
1 parent 8be0711 commit 47f800e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/stpipe/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,8 @@ def log_records(self):
return self._log_records

def emit(self, record):
if not self.formatter:
return
self._log_records.append(self.formatter.format(record))
if self.formatter is not None:
self._log_records.append(self.formatter.format(record))


@contextmanager
Expand Down

0 comments on commit 47f800e

Please sign in to comment.