Logging message somehow loses first tchar

Hi guys,

I have a logging utility in my network manager. When i concat a parameter to the log message; the log message loses the first tchar somehow. I can’t see what’s happening here. Can some cpp masters explain what I’m missing?

Here is before and after screenshots of the code and output :

I found a way to get rid of problem. So stupid but works.

"Gotten Packet isLastChunk. : " + isLastChunk)

to

FString("Gotten Packet isLastChunk. : ") + FString(isLastChunk ? "true" : "false")

Sometimes cpp can be annoying for people who are used to coding high-level languages.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.