Permalink
Browse files

Fixed logging bug

  • Loading branch information...
1 parent 0fc4cc3 commit 8fc5918005568e18e1ece81cf76bbcfa2fdf06de Vladimir Gorej committed Nov 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 django_gearman_commands/__init__.py
@@ -89,7 +89,7 @@ def _invoke_job(self, worker, job):
self.stdout.write('Job finished, task: {0:s}\n'.format(self.task_name))
if result is not None:
- self.stdout.write('{0:s}\n'.format(result))
+ self.stdout.write('{0}\n'.format(result))
return 'OK'
except Exception:
@@ -147,7 +147,7 @@ def get_server_info(self):
if r['tasks']: # ignore workers with no registered task
table.add_row([r['ip'], ','.join(r['tasks']), r['client_id'], r['file_descriptor']])
- result += '{0}.\n\n'.format(table)
+ result += '{0:s}.\n\n'.format(table)
else:
# raw output without PrettyTable

0 comments on commit 8fc5918

Please sign in to comment.