From ea732556f33918e9f617dd6f447ca0fe5c27355a Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 5 May 2022 04:23:27 +0300 Subject: [PATCH 20/20] Turn "Did not find a cm solution..." to LOG_DEBUG on testmatic builds See osdn #44438 Signed-off-by: Marko Lindqvist --- common/aicore/cm.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/common/aicore/cm.c b/common/aicore/cm.c index 493df8cd8b..a5dd0e2424 100644 --- a/common/aicore/cm.c +++ b/common/aicore/cm.c @@ -1984,8 +1984,14 @@ static void cm_find_best_solution(struct cm_state *state, loop_count++; if (loop_count > max_count) { - log_error("Did not find a cm solution in %d iterations for %s.", - max_count, city_name_get(state->pcity)); + log_base( +#ifdef FREECIV_TESTMATIC + LOG_DEBUG, +#else /* FREECIV_TESTMATIC */ + LOG_ERROR, +#endif /* FREECIV_TESTMATIC */ + "Did not find a cm solution in %d iterations for %s.", + max_count, city_name_get(state->pcity)); result->aborted = TRUE; break; } -- 2.35.1