Fix sources app logging
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -83,7 +83,7 @@ class Source(models.Model):
|
||||
)
|
||||
)
|
||||
except NoMIMETypeMatch:
|
||||
logging.debug(msg='Exception: NoMIMETypeMatch')
|
||||
logger.debug(msg='Exception: NoMIMETypeMatch')
|
||||
documents.append(
|
||||
self.upload_document(file_object=file_object, **kwargs)
|
||||
)
|
||||
|
||||
@@ -150,7 +150,7 @@ def task_source_handle_upload(self, document_type_id, shared_uploaded_file_id, s
|
||||
exception
|
||||
)
|
||||
except NoMIMETypeMatch:
|
||||
logging.debug('Exception: NoMIMETypeMatch')
|
||||
logger.debug('Exception: NoMIMETypeMatch')
|
||||
task_upload_document.delay(
|
||||
shared_uploaded_file_id=shared_upload.pk, **kwargs
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user