diff --git a/backup_filebase_locally.py b/backup_filebase_locally.py index d993b94..f832fdd 100644 --- a/backup_filebase_locally.py +++ b/backup_filebase_locally.py @@ -16,9 +16,9 @@ from kubo_rpc_api import KuboRPC from filebase_pin_api import FilebasePinAPI -RPC = KuboRPC(log_filepath="backup_filebase_locally.log", +RPC = KuboRPC(log_filepath="logs/backup_filebase_locally.log", log_level=logging.DEBUG) -FILEBASE_API = FilebasePinAPI(log_filepath="backup_filebase_locally.log", +FILEBASE_API = FilebasePinAPI(log_filepath="logs/backup_filebase_locally.log", log_level=logging.DEBUG) BUCKETS: List[str] = [ 'kleros', diff --git a/get_filebase_cids.py b/get_filebase_cids.py index 2add89a..aa17e21 100644 --- a/get_filebase_cids.py +++ b/get_filebase_cids.py @@ -34,7 +34,7 @@ def main() -> None: Returns: None """ - filebase_api = FilebasePinAPI(log_filepath="get_filebase_cids.log") + filebase_api = FilebasePinAPI(log_filepath="logs/get_filebase_cids.log") for bucket in BUCKETS: cids = filebase_api.get_all_cids(bucket) print(f"{bucket} has {len(cids)} CIDs") diff --git a/metadata_checker.py b/metadata_checker.py index e135b2f..7c55052 100644 --- a/metadata_checker.py +++ b/metadata_checker.py @@ -9,6 +9,6 @@ load_dotenv() -filebase_api = FilebasePinAPI('metadata_checker.log') +filebase_api = FilebasePinAPI('logs/metadata_checker.log') print(filebase_api.get_file( 'kleros', 'QmVq2GstdkVQDNQFZMLGLFpVxwHR2abYyYgFZwh8GtkkWi')) diff --git a/update_filebase_with_local.py b/update_filebase_with_local.py index e128c62..a55957a 100644 --- a/update_filebase_with_local.py +++ b/update_filebase_with_local.py @@ -43,9 +43,9 @@ def main(filepath, bucket_name="kleros"): The first 10 CIDs from the list. The number of CIDs in Kleros IPFS, in Filebase, and the number of missed CIDs in Filebase. """ - kubo_rpc = KuboRPC(log_filepath='update_filebase_with_local.log') + kubo_rpc = KuboRPC(log_filepath='logs/update_filebase_with_local.log') filebase_api = FilebasePinAPI( - log_filepath='update_filebase_with_local.log') + log_filepath='logs/update_filebase_with_local.log') bucket_name = 'kleros' cids: List[str] = kubo_rpc.read_pin_ls_output(filepath) print(cids[0:10])