logging-ext2 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- logging_ext2/__about__.py +1 -1
- logging_ext2/handlers.py +5 -2
- {logging_ext2-0.2.1.dist-info → logging_ext2-0.2.2.dist-info}/METADATA +1 -1
- logging_ext2-0.2.2.dist-info/RECORD +8 -0
- logging_ext2-0.2.1.dist-info/RECORD +0 -8
- {logging_ext2-0.2.1.dist-info → logging_ext2-0.2.2.dist-info}/WHEEL +0 -0
- {logging_ext2-0.2.1.dist-info → logging_ext2-0.2.2.dist-info}/licenses/LICENSE +0 -0
logging_ext2/__about__.py
CHANGED
logging_ext2/handlers.py
CHANGED
@@ -67,8 +67,11 @@ class TimedRotatingFileHandler(Handler):
|
|
67
67
|
for to_gzip_path in paths[self.flat_keep:self.max_keep]:
|
68
68
|
# here use the system gzip command to ignore exceptions like
|
69
69
|
# permission denied or file not found
|
70
|
-
|
71
|
-
to_gzip_path.
|
70
|
+
try:
|
71
|
+
if not to_gzip_path.stat().st_size:
|
72
|
+
to_gzip_path.unlink(missing_ok=True)
|
73
|
+
continue
|
74
|
+
except FileNotFoundError:
|
72
75
|
continue
|
73
76
|
if to_gzip_path.suffix == ".gz":
|
74
77
|
continue
|
@@ -0,0 +1,8 @@
|
|
1
|
+
logging_ext2/__about__.py,sha256=CwnIpwy4dY5_pEu6b684l8Sx6zWLEmy0PSCcBVT27Zg,121
|
2
|
+
logging_ext2/__init__.py,sha256=BA6rgdmh3z2v01cbHU1FRMsBIRV5vQjh2w9FzG2F2GY,99
|
3
|
+
logging_ext2/handlers.py,sha256=_kD4jtd9otv5Me4Zx099Glh2wZoq1gJTGt7HiQAE7y0,2967
|
4
|
+
logging_ext2/types.py,sha256=cLjODjTgxrZEXUZzOkrFm3s6bUG3Itc_fS7KJ-MSWC8,237
|
5
|
+
logging_ext2-0.2.2.dist-info/METADATA,sha256=T6ZjAFvVK4N8PnNACvYnAIm9RabCziS4ZBIj7IEmUwc,1429
|
6
|
+
logging_ext2-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
7
|
+
logging_ext2-0.2.2.dist-info/licenses/LICENSE,sha256=RckqF9bdq7oO9RrL4iZYuXNhkIcXexbXNF2ToiaJymU,1067
|
8
|
+
logging_ext2-0.2.2.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
logging_ext2/__about__.py,sha256=mUu4qhx9EBxDtNiujiI_vqVwo8Jx3o3ULeBVbvx8RkM,121
|
2
|
-
logging_ext2/__init__.py,sha256=BA6rgdmh3z2v01cbHU1FRMsBIRV5vQjh2w9FzG2F2GY,99
|
3
|
-
logging_ext2/handlers.py,sha256=UCPKGYrOAFT5Eztv4UJa1ZMlbecjn4nqNg02jxbJXlA,2875
|
4
|
-
logging_ext2/types.py,sha256=cLjODjTgxrZEXUZzOkrFm3s6bUG3Itc_fS7KJ-MSWC8,237
|
5
|
-
logging_ext2-0.2.1.dist-info/METADATA,sha256=TIMXq6mEkBHRUvXlE7kek02kcv7YcYxWgubJUQ2oLKs,1429
|
6
|
-
logging_ext2-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
7
|
-
logging_ext2-0.2.1.dist-info/licenses/LICENSE,sha256=RckqF9bdq7oO9RrL4iZYuXNhkIcXexbXNF2ToiaJymU,1067
|
8
|
-
logging_ext2-0.2.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|