Skip to content

Commit

Permalink
Report the thread errors as actual errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ewized committed Aug 26, 2015
1 parent 36a2f18 commit 1ea1ecd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pycloud/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def process(self, data):
results = {'cloud': self.cloud.id, 'id': session.id}
self.redis.publish(CREATE_CHANNEL + '.' + hash_id, str(results))
except ValueError as error:
_log.info('Input error: ' + str(error))
_log.error('Input error: ' + str(error))


class RemoveMessaging(Messaging):
Expand Down Expand Up @@ -107,7 +107,7 @@ def process(self, data):
results = {'cloud': self.cloud.id, 'session': session, 'status': status}
self.redis.publish(REMOVE_CHANNEL + '.' + hash_id, str(results))
except ValueError as error:
_log.info('Remove error: ' + str(error))
_log.error('Remove error: ' + str(error))


class StatusMessaging(Messaging):
Expand All @@ -132,7 +132,7 @@ def process(self, data):
results = {'cloud': self.cloud.id, 'id': session, 'status': status}
self.redis.publish(STATUS_CHANNEL + '.' + hash_id, str(results))
except ValueError as error:
_log.info('Status error: ' + str(error))
_log.error('Status error: ' + str(error))


class RankMessaging(Messaging):
Expand Down

0 comments on commit 1ea1ecd

Please sign in to comment.