Description:
Further tweak logging.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r396:7feb5503cdf0 -

@@ -98,13 +98,13
98
98
99 if (attempts >= maxAttempts && squares.Count < max_size)
99 if (attempts >= maxAttempts && squares.Count < max_size)
100 {
100 {
101 Logging.Debug(string.Format("Attempt to generate enough squares failed. {0} were requested, only {1} were found ({2} attempts)", max_size, squares.Count, attempts));
101 Logging.Info(string.Format("Attempt to generate enough squares failed. {0} were requested, only {1} were found ({2} attempts)", max_size, squares.Count, attempts));
102 break;
102 break;
103 }
103 }
104 }
104 }
105 if (squares.Count > max_size)
105 if (squares.Count >= max_size)
106 {
106 {
107 Logging.Info(string.Format("Successfully generated enough squares. {0} squares were requested, {1} were found ({2} attempts).", max_size, squares.Count, attempts));
107 Logging.Debug(string.Format("Successfully generated enough squares. {0} squares were requested, {1} were found ({2} attempts).", max_size, squares.Count, attempts));
108 }
108 }
109 return squares.ToArray();
109 return squares.ToArray();
110 }
110 }
You need to be logged in to leave comments. Login now