Skip to content

Commit 039a0f4

Browse files
committed
remove caching of log files
1 parent a1631c1 commit 039a0f4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

podcomm/definitions.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ def getLogger(with_console=False):
7070
fh = logging.FileHandler(DATA_PATH + OMNIPY_LOGFILE + LOGFILE_SUFFIX)
7171
fh.setLevel(logging.DEBUG)
7272
fh.setFormatter(formatter)
73-
74-
mh = MemoryHandler(capacity=16*1024, target=fh)
75-
logger.addHandler(mh)
73+
logger.addHandler(fh)
7674

7775
if with_console:
7876
ch = logging.StreamHandler()
@@ -94,9 +92,7 @@ def get_packet_logger(with_console=False):
9492
fh = logging.FileHandler(DATA_PATH + OMNIPY_PACKET_LOGFILE + LOGFILE_SUFFIX)
9593
fh.setLevel(logging.INFO)
9694
fh.setFormatter(formatter)
97-
98-
mh = MemoryHandler(capacity=16*1024, target=fh)
99-
packet_logger.addHandler(mh)
95+
packet_logger.addHandler(fh)
10096

10197
if with_console:
10298
ch = logging.StreamHandler()

0 commit comments

Comments
 (0)