Skip to content

Commit 997b5ee

Browse files
feat: logging to "devo.data" instead of "root"
1 parent 25a56f6 commit 997b5ee

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

devo/sender/data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
PYPY = hasattr(sys, "pypy_version_info")
3030

31+
log = logging.getLogger(__name__)
32+
3133

3234
class ERROR_MSGS(str, Enum):
3335

@@ -764,7 +766,7 @@ def close(self):
764766
self.socket.shutdown(SHUT_WR)
765767
self.__wait_for_EOF()
766768
except Exception: # Try else continue
767-
logging.warning(ERROR_MSGS.CLOSING_ERROR)
769+
log.warning(ERROR_MSGS.CLOSING_ERROR)
768770
finally:
769771
self.socket.close()
770772
self.socket = None

0 commit comments

Comments
 (0)