# HG changeset patch # User Alys Brooks # Date 2021-08-07 08:20:14 # Node ID 6ee4d41ab069e35f5c2df38a6a2177a4bbea77d3 # Parent 98b7a270600677660e1bc45161f4a0aa91bd1113 Tweaking logging. diff --git a/isometric-park-fna/Engines/Spawners/ContractSpawner.cs b/isometric-park-fna/Engines/Spawners/ContractSpawner.cs --- a/isometric-park-fna/Engines/Spawners/ContractSpawner.cs +++ b/isometric-park-fna/Engines/Spawners/ContractSpawner.cs @@ -98,10 +98,14 @@ if (attempts >= maxAttempts && squares.Count < max_size) { - Logging.Warning(string.Format("Failed to generate enough squares. {0} were requested, only {1} were found ({2} attempts)", max_size, squares.Count, attempts)); + Logging.Debug(string.Format("Attempt to generate enough squares failed. {0} were requested, only {1} were found ({2} attempts)", max_size, squares.Count, attempts)); break; } } + if (squares.Count > max_size) + { + Logging.Info(string.Format("Successfully generated enough squares. {0} squares were requested, {1} were found ({2} attempts).", max_size, squares.Count, attempts)); + } return squares.ToArray(); }