MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / WriteDiagOutput

Function WriteDiagOutput

engine/Poseidon/Network/Network.cpp:212–233  ·  view source on GitHub ↗

Write diagnostics logs to output

Source from the content-addressed store, hash-verified

210
211// Write diagnostics logs to output
212void 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
236static void WriteToFile(HANDLE file, RString string)

Callers 2

OnSimulateMethod · 0.85
OnSimulateMethod · 0.85

Calls 3

toFloatMethod · 0.80
SizeMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected