Changeset - r25778:1431b096ec8a
[Not reviewed]
master
0 1 0
Patric Stout - 3 years ago 2021-07-08 17:31:00
truebrain@openttd.org
Fix: reduce the amount of debug messages on -dsl=2 (#9420)

LoadCheck makes it sound like something is really broken while
loading savegames, while it really is perfectly normal, as most
chunks do not implement LoadCheck.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/saveload/saveload.cpp
Show inline comments
 
@@ -1918,7 +1918,8 @@ std::vector<SaveLoad> SlTableHeader(cons
 

	
 
				auto sld_it = key_lookup.find(key);
 
				if (sld_it == key_lookup.end()) {
 
					Debug(sl, 2, "Field '{}' of type 0x{:02x} not found, skipping", key, type);
 
					/* SLA_LOADCHECK triggers this debug statement a lot and is perfectly normal. */
 
					Debug(sl, _sl.action == SLA_LOAD ? 2 : 6, "Field '{}' of type 0x{:02x} not found, skipping", key, type);
 

	
 
					std::shared_ptr<SaveLoadHandler> handler = nullptr;
 
					SaveLoadType slt;
0 comments (0 inline, 0 general)