dvlogger 2.0.6__tar.gz → 2.0.7__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dvlogger
3
- Version: 2.0.6
3
+ Version: 2.0.7
4
4
  Summary: A custom logger with coloured output and uncaught exception logging. Supports threading and asyncio.
5
5
  Author-email: Pranav Mittal <pranavmittal611@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/mlpranav/dvlogger
@@ -1,4 +1,4 @@
1
- # dvlogger (v2.0.6)
1
+ # dvlogger (v2.0.7)
2
2
 
3
3
  ## Requirements
4
4
 
@@ -241,7 +241,7 @@ class TGHandler(logging.Handler):
241
241
  next_flush = math.ceil(cur_time / self.flush_interval) * self.flush_interval
242
242
  sleep_time = next_flush - cur_time
243
243
  if sleep_time > 0:
244
- time.sleep(sleep_time)
244
+ self.shutdown_event.wait(timeout=sleep_time)
245
245
 
246
246
  log_entries = []
247
247
  while True: # drain queue
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dvlogger
3
- Version: 2.0.6
3
+ Version: 2.0.7
4
4
  Summary: A custom logger with coloured output and uncaught exception logging. Supports threading and asyncio.
5
5
  Author-email: Pranav Mittal <pranavmittal611@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/mlpranav/dvlogger
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dvlogger"
7
- version = "2.0.6"
7
+ version = "2.0.7"
8
8
  description = "A custom logger with coloured output and uncaught exception logging. Supports threading and asyncio."
9
9
  authors = [
10
10
  {name = "Pranav Mittal", email = "pranavmittal611@gmail.com"},
File without changes
File without changes