From cdb151eb8869d3853442625a54f1a3bbc447dd6e Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 5 Feb 2021 10:34:59 +0000 Subject: [PATCH] Reduce log noise for non-developers --- Nasal/local_weather/weather_tile_management.nas | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Nasal/local_weather/weather_tile_management.nas b/Nasal/local_weather/weather_tile_management.nas index 19d3f6dd9..1363699c4 100644 --- a/Nasal/local_weather/weather_tile_management.nas +++ b/Nasal/local_weather/weather_tile_management.nas @@ -192,13 +192,13 @@ foreach (var t; tNode) { { var gen_flag = tNode[i_min].getNode("generated-flag").getValue(); - if (gen_flag != 2){ - print("Tile direction ",i_min, " not generated!"); - print("Flag: ",gen_flag); - } + if (gen_flag != 2) { + logprint(DEV_WARN, "Tile direction ",i_min, " not generated!"); + logprint(DEV_WARN, "Flag: ",gen_flag); + } if (local_weather.debug_output_flag == 1) - {print("Changing active tile to direction ", i_min);} + {logprint(LOG_DEBUG, "Changing active tile to direction ", i_min);} change_active_tile(i_min); }