Skip to content

Commit

Permalink
Also warn on missing service names for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
gdestuynder committed Jun 17, 2015
1 parent 8d33148 commit f87c675
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mq/plugins/rra.py
Expand Up @@ -42,8 +42,10 @@ def validate(self, message):
return False

if (len(message['details']['metadata']['service']) == 0):
sys.stderr.write('warning: no service name for {0}\n'.format(message['source']))
return False
if (message['details']['metadata']['service'] == 'RRA for '):
sys.stderr.write('warning: Invalid service name for {0}\n'.format(message['source']))
return False

return True
Expand Down

0 comments on commit f87c675

Please sign in to comment.