1
0
Fork 0
forked from josch/img2pdf

demote print() to logger.debug()

This commit is contained in:
Johannes Schauer Marin Rodrigues 2023-05-29 09:25:21 +02:00
parent 7d40569aa1
commit 7fa67bb337
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -445,7 +445,7 @@ class temp_attr:
if hasattr(self.obj, self.field):
self.exists = True
self.old_value = getattr(self.obj, self.field)
print(f"setting {self.obj}.{self.field} = {self.value}")
logger.debug(f"setting {self.obj}.{self.field} = {self.value}")
setattr(self.obj, self.field, self.value)
def __exit__(self, exctype, excinst, exctb):