changeset 3317:deea2f15400f

Be more verbose with unexpected case in classifying waterlevels.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 17 May 2019 17:22:09 +0200
parents c7b48272e11e
children 753e7c8e8c95
files pkg/controllers/bottlenecks.go
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/controllers/bottlenecks.go	Fri May 17 14:58:59 2019 +0200
+++ b/pkg/controllers/bottlenecks.go	Fri May 17 17:22:09 2019 +0200
@@ -219,7 +219,8 @@
 			))
 			start, end = p1.when, p2.when
 		default:
-			log.Println("warn: unexpected case. That should not happen.")
+			log.Printf("warn: unexpected case. That should not happen. %v - %v, %v - %v\n",
+				p1.when, p2.when, from, to)
 			continue pairs
 		}