Write diagnostics logs to output
| 210 | |
| 211 | // Write diagnostics logs to output |
| 212 | void WriteDiagOutput(bool server) |
| 213 | { |
| 214 | if (DiagOutput.Size() == 0) |
| 215 | { |
| 216 | return; |
| 217 | } |
| 218 | |
| 219 | if (server) |
| 220 | { |
| 221 | LOG_DEBUG(Network, "Server simulation, time = {:.3f}, {} rows", Glob.time.toFloat(), DiagOutput.Size()); |
| 222 | } |
| 223 | else |
| 224 | { |
| 225 | LOG_DEBUG(Network, "Client simulation, time = {:.3f}, {} rows", Glob.time.toFloat(), DiagOutput.Size()); |
| 226 | } |
| 227 | for (int i = 0; i < DiagOutput.Size(); i++) |
| 228 | { |
| 229 | LOG_DEBUG(Network, "{}", (const char*)DiagOutput[i]); |
| 230 | } |
| 231 | LOG_DEBUG(Network, ""); |
| 232 | DiagOutput.Clear(); |
| 233 | } |
| 234 | |
| 235 | // Write single line of text into file |
| 236 | static void WriteToFile(HANDLE file, RString string) |
no test coverage detected