Skip to content

Commit

Permalink
Hide some more log messages from tej
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Aug 7, 2015
1 parent 4cd7b67 commit b91bae2
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions vistrails/packages/tej/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def job_finish(self, params):
Gets the exit code from the server.
"""
queue = QueueCache.get(params['destination'], params['queue'])
status, target, arg = queue.status(params['job_id'])
with ServerLogger.hide_output():
status, target, arg = queue.status(params['job_id'])
assert status == tej.RemoteQueue.JOB_DONE
params['exitcode'] = int(arg)
return params
Expand Down Expand Up @@ -411,10 +412,11 @@ def compute(self):

destination = self.interpreter.filePool.create_file(
prefix='vt_tmp_shelljobout_')
job.queue.download(job.job_id,
self.get_input('filename'),
destination=destination.name,
recursive=False)
with ServerLogger.hide_output():
job.queue.download(job.job_id,
self.get_input('filename'),
destination=destination.name,
recursive=False)

self.set_output('file', destination)

Expand All @@ -433,10 +435,11 @@ def compute(self):
destination = self.interpreter.filePool.create_directory(
prefix='vt_tmp_shelljobout_').name
target = os.path.join(destination, 'dir')
job.queue.download(job.job_id,
self.get_input('pathname'),
destination=target,
recursive=True)
with ServerLogger.hide_output():
job.queue.download(job.job_id,
self.get_input('pathname'),
destination=target,
recursive=True)

self.set_output('directory', PathObject(target))

Expand Down

0 comments on commit b91bae2

Please sign in to comment.