Add fflush(stdout) to DebugInboundEventsHandler and DebugOutboundEventsHandler (#121)

This commit is contained in:
Nicolas Combe 2021-08-27 16:17:57 -05:00
parent f72c4688f8
commit ff2dcf24f4
2 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,7 @@ public class DebugInboundEventsHandler: ChannelInboundHandler {
message = "Channel caught error: \(error)"
}
print(message + " in \(context.name)")
fflush(stdout)
}
}

View File

@ -100,6 +100,7 @@ public class DebugOutboundEventsHandler: ChannelOutboundHandler {
message = "Triggering user outbound event: { \(event) }"
}
print(message + " in \(context.name)")
fflush(stdout)
}
}