diff --git a/mayan/apps/sources/models/base.py b/mayan/apps/sources/models/base.py index bcca608256..09d3690401 100644 --- a/mayan/apps/sources/models/base.py +++ b/mayan/apps/sources/models/base.py @@ -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) ) diff --git a/mayan/apps/sources/tasks.py b/mayan/apps/sources/tasks.py index 060fe61ee7..f9e05298c1 100644 --- a/mayan/apps/sources/tasks.py +++ b/mayan/apps/sources/tasks.py @@ -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 )