Skip to content

Commit

Permalink
make sure to restore log level after argument application
Browse files Browse the repository at this point in the history
  • Loading branch information
huettenhain committed Dec 8, 2024
1 parent 5b11c37 commit 2cbcf1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions refinery/units/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1836,6 +1836,7 @@ def read1(self, bytecount: int = -1) -> bytes:
def act(self, data: Union[Chunk, ByteStr]) -> Generator[ByteStr, None, None]:
cls = self.__class__
iff = self.args.iff
lvl = cls.log_level

if iff and not self.handles(data):
if iff < 2:
Expand All @@ -1845,6 +1846,7 @@ def act(self, data: Union[Chunk, ByteStr]) -> Generator[ByteStr, None, None]:
data = self.args @ data
data = data

cls.log_level = lvl
cls.logger_locked = True

try:
Expand Down

0 comments on commit 2cbcf1f

Please sign in to comment.