From ecf550a04104ee809830069d45a149a9dcd862b8 Mon Sep 17 00:00:00 2001 From: Pauliina Ilmanen Date: Thu, 8 Aug 2024 12:49:01 +0300 Subject: [PATCH] Change error level to warning in lipas import 3D Change the error level from error to warning in lipas 3D import when the unit is not saved due to a missing z coordinate. --- services/management/commands/lipas_import_3d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/management/commands/lipas_import_3d.py b/services/management/commands/lipas_import_3d.py index b764efa04..e74e3c497 100644 --- a/services/management/commands/lipas_import_3d.py +++ b/services/management/commands/lipas_import_3d.py @@ -30,7 +30,7 @@ def _save_geometries(self, geometries, units_by_lipas_id): unit.geometry_3d = geometry unit.save() else: - logger.error( + logger.warning( f"Failed to save unit {unit.name_fi} because of a missing z coordinate.", )