djlogq 1.0.7__tar.gz → 1.0.8__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.
Files changed (26) hide show
  1. {djlogq-1.0.7/src/djlogq.egg-info → djlogq-1.0.8}/PKG-INFO +1 -1
  2. {djlogq-1.0.7 → djlogq-1.0.8}/pyproject.toml +1 -1
  3. {djlogq-1.0.7 → djlogq-1.0.8/src/djlogq.egg-info}/PKG-INFO +1 -1
  4. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/async_logger.py +4 -1
  5. {djlogq-1.0.7 → djlogq-1.0.8}/MANIFEST.in +0 -0
  6. {djlogq-1.0.7 → djlogq-1.0.8}/README.md +0 -0
  7. {djlogq-1.0.7 → djlogq-1.0.8}/setup.cfg +0 -0
  8. {djlogq-1.0.7 → djlogq-1.0.8}/src/djlogq.egg-info/SOURCES.txt +0 -0
  9. {djlogq-1.0.7 → djlogq-1.0.8}/src/djlogq.egg-info/dependency_links.txt +0 -0
  10. {djlogq-1.0.7 → djlogq-1.0.8}/src/djlogq.egg-info/requires.txt +0 -0
  11. {djlogq-1.0.7 → djlogq-1.0.8}/src/djlogq.egg-info/top_level.txt +0 -0
  12. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/__init__.py +0 -0
  13. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/admin.py +0 -0
  14. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/apps.py +0 -0
  15. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/management/__init__.py +0 -0
  16. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/management/commands/__init__.py +0 -0
  17. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/management/commands/clean_logs.py +0 -0
  18. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/middleware.py +0 -0
  19. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/migrations/0001_initial.py +0 -0
  20. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/migrations/0002_alter_logentry_function_alter_logentry_line_number_and_more.py +0 -0
  21. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/migrations/__init__.py +0 -0
  22. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/models.py +0 -0
  23. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/tests.py +0 -0
  24. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/urls.py +0 -0
  25. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/utils.py +0 -0
  26. {djlogq-1.0.7 → djlogq-1.0.8}/src/logq/views.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: djlogq
3
- Version: 1.0.7
3
+ Version: 1.0.8
4
4
  Summary: A reusable Django app for asynchronous, thread-safe logging with rich metadata, admin interface, and API support.
5
5
  Author-email: mess <mesnavunawa@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "djlogq"
7
- version = "1.0.7"
7
+ version = "1.0.8"
8
8
  description = "A reusable Django app for asynchronous, thread-safe logging with rich metadata, admin interface, and API support."
9
9
  readme = "README.md"
10
10
  authors = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: djlogq
3
- Version: 1.0.7
3
+ Version: 1.0.8
4
4
  Summary: A reusable Django app for asynchronous, thread-safe logging with rich metadata, admin interface, and API support.
5
5
  Author-email: mess <mesnavunawa@gmail.com>
6
6
  License: MIT
@@ -133,7 +133,8 @@ class AsyncLogger:
133
133
 
134
134
  # send log entries to custom handlers
135
135
  self._send_to_handlers(batch)
136
-
136
+ # flush custom handlers
137
+ self._flush_handlers()
137
138
  # Log dropped messages if any
138
139
  with self._dropped_lock:
139
140
  if self.dropped_count > 0:
@@ -175,6 +176,7 @@ class AsyncLogger:
175
176
  try:
176
177
  for entry in batch:
177
178
  handler.handle(entry)
179
+
178
180
  except Exception as e:
179
181
  # Dont let an error in a handler crash the logger
180
182
  print(f"Error sending log entries to handler {handler.__class__.__name__}: {e}")
@@ -278,3 +280,4 @@ def stop_async_logger():
278
280
  _async_logger.stop()
279
281
  _async_logger = None
280
282
 
283
+
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes