mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	fix some logging messages
This commit is contained in:
		| @@ -200,8 +200,6 @@ class Consumer(LoggingMixin): | |||||||
|                 MESSAGE_UNSUPPORTED_TYPE, |                 MESSAGE_UNSUPPORTED_TYPE, | ||||||
|                 f"Unsupported mime type {mime_type}" |                 f"Unsupported mime type {mime_type}" | ||||||
|             ) |             ) | ||||||
|         else: |  | ||||||
|             self.log("debug", f"Parser: {parser_class.__name__}") |  | ||||||
|  |  | ||||||
|         # Notify all listeners that we're going to do some work. |         # Notify all listeners that we're going to do some work. | ||||||
|  |  | ||||||
| @@ -222,6 +220,8 @@ class Consumer(LoggingMixin): | |||||||
|  |  | ||||||
|         document_parser = parser_class(self.logging_group, progress_callback) |         document_parser = parser_class(self.logging_group, progress_callback) | ||||||
|  |  | ||||||
|  |         self.log("debug", f"Parser: {type(document_parser).__name__}") | ||||||
|  |  | ||||||
|         # However, this already created working directories which we have to |         # However, this already created working directories which we have to | ||||||
|         # clean up. |         # clean up. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -11,7 +11,7 @@ logger = logging.getLogger("paperless.matching") | |||||||
| def log_reason(matching_model, document, reason): | def log_reason(matching_model, document, reason): | ||||||
|     class_name = type(matching_model).__name__ |     class_name = type(matching_model).__name__ | ||||||
|     logger.debug( |     logger.debug( | ||||||
|         f"Assigning {class_name} {matching_model.name} to document " |         f"{class_name} {matching_model.name} matched on document " | ||||||
|         f"{document} because {reason}") |         f"{document} because {reason}") | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler