Description:
Tweaking logging.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -98,10 +98,14 | |||||
|
98 |
|
98 | ||
|
99 | if (attempts >= maxAttempts && squares.Count < max_size) |
|
99 | if (attempts >= maxAttempts && squares.Count < max_size) |
|
100 | { |
|
100 | { |
|
101 |
Logging. |
|
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)); |
|
102 | break; |
|
102 | break; |
|
103 | } |
|
103 | } |
|
104 | } |
|
104 | } |
|
|
105 | if (squares.Count > max_size) | ||
|
|
106 | { | ||
|
|
107 | Logging.Info(string.Format("Successfully generated enough squares. {0} squares were requested, {1} were found ({2} attempts).", max_size, squares.Count, attempts)); | ||
|
|
108 | } | ||
|
105 | return squares.ToArray(); |
|
109 | return squares.ToArray(); |
|
106 | } |
|
110 | } |
|
107 |
|
111 |
You need to be logged in to leave comments.
Login now