mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-08 03:18:28 +03:00
additional logging
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from loguru import logger
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
@@ -15,5 +16,6 @@ class Storage(ABC):
|
||||
def uploadf(self, file, key, **kwargs): pass
|
||||
|
||||
def upload(self, filename: str, key: str, **kwargs):
|
||||
logger.debug(f'[{self.__class__.__name__}] uploading file {filename} with key {key}')
|
||||
with open(filename, 'rb') as f:
|
||||
self.uploadf(f, key, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user