Skip to content
Snippets Groups Projects
Commit 565c0db3 authored by Erik Reid's avatar Erik Reid
Browse files

log invalid/inconsistent coriant requests

parent 2e35e079
No related branches found
No related tags found
No related merge requests found
......@@ -306,7 +306,7 @@ def get_coriant_info(equipment_name, entity_string):
m = re.match(r'^(\d+\-\d+)\.(\d+)', entity_string)
if not m:
logger.warning(
logger.error(
'invalid coriant entity string format: %r' % entity_string)
return Response(
response="no available info for '{}' '{}'".format(
......@@ -327,6 +327,9 @@ def get_coriant_info(equipment_name, entity_string):
if path:
result['path'] = path
else:
logger.error('no path found for {}:{}'.format(
equipment_name, entity_string))
# cache this data for the next call
result = json.dumps(result).encode('utf-8')
......
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