Skip to content
Snippets Groups Projects
Commit 6fbb0e1d authored by Mattia Mancini's avatar Mattia Mancini
Browse files

OSB-28: fix logging errors

parent 1ca9e63b
No related branches found
No related tags found
2 merge requests!89Monitoring maintenance Epic branch merge,!1Resolve OSB-13 "Monitoringmaintenance "
......@@ -72,6 +72,6 @@ class ComponentErrorSerializer(NotNullModelSerializer):
logger.exception(
'Cannot insert component error %s'
' for station_test_entry %s and station_entry %s: %s',
component_error, station_test_entry, station_entry)
component_error, station_test_entry, station_entry, e)
raise e
return results
......@@ -22,7 +22,7 @@ class ElementErrorSerializer(ModelSerializer):
element_error):
component_error = element_error.pop('component_error')
component_error_entry = ComponentErrorSerializer(station_test_entry,
component_error_entry = ComponentErrorSerializer.insert_component_error(station_test_entry,
station_entry,
component_error)
component = component_error_entry.component
......@@ -61,5 +61,5 @@ class ElementErrorSerializer(ModelSerializer):
logger.exception(
'Cannot insert element error %s'
' for station_test_entry %s and station_entry %s: %s',
element_error, station_test_entry, station_entry)
element_error, station_test_entry, station_entry, e)
raise e
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