mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
No need to pass verbosity around anymore
This commit is contained in:
parent
a4d89ed124
commit
631aa99d92
@ -66,9 +66,8 @@ class Consumer(object):
|
||||
flags=re.IGNORECASE
|
||||
)
|
||||
|
||||
def __init__(self, verbosity=1):
|
||||
def __init__(self):
|
||||
|
||||
self.verbosity = verbosity
|
||||
self.logger = logging.getLogger(__name__)
|
||||
self.logging_group = None
|
||||
|
||||
|
@ -34,7 +34,7 @@ class Command(BaseCommand):
|
||||
self.verbosity = options["verbosity"]
|
||||
|
||||
try:
|
||||
self.file_consumer = Consumer(verbosity=self.verbosity)
|
||||
self.file_consumer = Consumer()
|
||||
self.mail_fetcher = MailFetcher()
|
||||
except (ConsumerError, MailFetcherError) as e:
|
||||
raise CommandError(e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user