# HG changeset patch # User Alys Brooks # Date 2021-08-07 08:27:16 # Node ID 7feb5503cdf006567891305838d5df12a68a69a4 # Parent 6ee4d41ab069e35f5c2df38a6a2177a4bbea77d3 Further tweak 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,13 +98,13 @@ if (attempts >= maxAttempts && squares.Count < max_size) { - Logging.Debug(string.Format("Attempt to generate enough squares failed. {0} were requested, only {1} were found ({2} attempts)", max_size, squares.Count, attempts)); + Logging.Info(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) + 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)); + Logging.Debug(string.Format("Successfully generated enough squares. {0} squares were requested, {1} were found ({2} attempts).", max_size, squares.Count, attempts)); } return squares.ToArray(); }