PlayFab / gsdk

Game Server SDK for PlayFab Multiplayer Servers
https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/
Apache License 2.0
146 stars 115 forks source link

force flush print buffer #176

Closed tculotta closed 4 months ago

tculotta commented 4 months ago

C++ test app previously wouldn't have it's printf messages captured properly in the local agent. The print buffer seemingly never got flushed to stdout.

nassosterz-ms commented 4 months ago

With fflush, do you see all logs consistently being outputted?

Without fflush, nothing shows up?

Just want to understand better what is happening here cause I have never encountered this before.

tculotta commented 4 months ago

That's exactly right. No logs show unless explicitly flushed. If you hadn't seen it before, it could be some disparity between wrapper or local agent versions maybe.