From 592b283cebc501b4e71fefec7b09e8c0570cb558 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Wed, 29 Sep 2021 16:56:18 +1000 Subject: [PATCH] remove debugs --- pa_job_manager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pa_job_manager.py b/pa_job_manager.py index 35dc050..3cce31c 100644 --- a/pa_job_manager.py +++ b/pa_job_manager.py @@ -444,7 +444,6 @@ def SettingsRBPath(): ############################################################################## def ProcessRecycleBinDir(job): path = SettingsRBPath() - print( f"here1: {path}" ) if not os.path.exists( path ): AddLogForJob( job, f"Not Importing {path} -- Path does not exist" ) return @@ -452,7 +451,6 @@ def ProcessRecycleBinDir(job): ptype = session.query(PathType).filter(PathType.name=='Bin').first() # check/create if needed symlink=CreateSymlink(job,ptype.id,path) - print( f"here2: {path}, s={symlink}" ) # create the Path (and Dir objects for the Bin) AddPath( job, symlink, ptype.id ) return @@ -1011,7 +1009,8 @@ def MoveFileToRecycleBin(job,del_me): # moves the file into the folder on the FS and then changes the database path to the relevant Storage path #################################################################################################################################### def MoveFileToNewFolderInStorage(job,move_me, dst_storage_path, dst_rel_path): - print( f"MoveFileToNewFolderInStorage: {move_me} to {dst_storage_path} in new? folder: {dst_storage_path}") + if DEBUG: + print( f"MoveFileToNewFolderInStorage: {move_me} to {dst_storage_path} in new? folder: {dst_storage_path}") try: dst_dir=dst_storage_path.path_prefix + '/' + dst_rel_path if DEBUG: