From 2ff8954d89d0488e1a76582b1ed00be3a62c49ab Mon Sep 17 00:00:00 2001 From: OrenAudeles Date: Thu, 10 Oct 2024 15:58:17 -0500 Subject: [PATCH] fix: change debug level of field count mismatch to DL::Warn (#5558) * fix: too many fields during decay iteration is not error-worthy Errors produce stack traces which can take a while, and so Debug Level `DL::Error` should be reserved for near-exceptional circumstances. * style(autofix.ci): automated formatting --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- src/map.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/map.cpp b/src/map.cpp index caf42f3ded2e..0ebe9e742c28 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -2787,10 +2787,10 @@ void map::decay_fields_and_scent( const time_duration &amount ) if( to_proc > 0 ) { cur_submap->field_count = cur_submap->field_count - to_proc; - dbg( DL::Error ) << "map::decay_fields_and_scent: submap at " - << abs_sub + tripoint( smx, smy, 0 ) - << "has " << cur_submap->field_count - to_proc << "fields, but " - << cur_submap->field_count << " field_count"; + dbg( DL::Warn ) << "map::decay_fields_and_scent: submap at " + << abs_sub + tripoint( smx, smy, 0 ) + << "has " << cur_submap->field_count - to_proc << "fields, but " + << cur_submap->field_count << " field_count"; } } }