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: