Skip to content
Snippets Groups Projects
Commit ba5bcf4b authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #9607: logging

parent f138f766
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,9 @@ def main(): ...@@ -46,7 +46,9 @@ def main():
path_result = rpc.getPathForOTDBId(otdb_id) path_result = rpc.getPathForOTDBId(otdb_id)
if path_result['found']: if path_result['found']:
path = path_result['path'] path = path_result['path']
print "This will delete everything in '%s'." % path scratch_paths = path_result['scratch_paths']
paths = scratch_paths + [path]
print "This will delete everything in '%s'." % ', '.join(paths)
if raw_input("Are you sure? (y/n) ") == 'y': if raw_input("Are you sure? (y/n) ") == 'y':
result = rpc.removeTaskData(otdb_id) result = rpc.removeTaskData(otdb_id)
print print
......
...@@ -80,7 +80,7 @@ class PathResolver: ...@@ -80,7 +80,7 @@ class PathResolver:
scratch_path = os.path.join(self.scratch_path, 'Observation%s' % task['otdb_id']) scratch_path = os.path.join(self.scratch_path, 'Observation%s' % task['otdb_id'])
share_path = os.path.join(self.share_path, 'Observation%s' % task['otdb_id']) share_path = os.path.join(self.share_path, 'Observation%s' % task['otdb_id'])
logger.debug("Checking scratch paths %s %s for otdb_id=%s mom_id=%s radb_id=%s" % (scratch_path, share_path, task['otdb_id'], task['mom_id'], task['id'])) logger.info("Checking scratch paths %s %s for otdb_id=%s mom_id=%s radb_id=%s" % (scratch_path, share_path, task['otdb_id'], task['mom_id'], task['id']))
if self.pathExists(scratch_path): if self.pathExists(scratch_path):
path_result['scratch_paths'].append(scratch_path) path_result['scratch_paths'].append(scratch_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment