diff --git a/inventory_provider/routes/classifier.py b/inventory_provider/routes/classifier.py index ccd0ac1232148777ecaa809bc2aed9f7200ab475..6cc274b08b3d1e44a9e7a67e16b21fa8b824191e 100644 --- a/inventory_provider/routes/classifier.py +++ b/inventory_provider/routes/classifier.py @@ -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')