Skip to content

Commit 3e44988

Browse files
committed
logs
1 parent 2cbd371 commit 3e44988

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
/rootfs/cn_s3_api/__pycache__
77
.DS_Store
88
conf/id_ed25519
9+
data

rootfs/sync.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ def process_IN_DELETE(self,event):
2424
delete_file(event.pathname)
2525
def copy_file(file):
2626
type=config.get_key(config.get_section(),'type','config')
27+
logger = logging.getLogger();
28+
logger.info(f"process copy_file : {type}")
2729
if type == 's3':
2830
s3_utils.copy_to_s3(file)
2931
elif type == 'sftp':
3032
sftp_utils.copy_to_sftp(file)
3133
def delete_file(file):
3234
type = config.get_key(config.get_section(), 'type', 'config')
35+
logger = logging.getLogger();
36+
logger.info(f"process delete_file : {type}")
3337
if type == 's3':
3438
s3_utils.delete_to_s3(file)
3539
elif type == 'sftp':

0 commit comments

Comments
 (0)