mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-15 01:18:58 +08:00
Add fflush(stdout)
to DebugInboundEventsHandler and DebugOutboundEventsHandler (#121)
This commit is contained in:
parent
f72c4688f8
commit
ff2dcf24f4
@ -107,6 +107,7 @@ public class DebugInboundEventsHandler: ChannelInboundHandler {
|
||||
message = "Channel caught error: \(error)"
|
||||
}
|
||||
print(message + " in \(context.name)")
|
||||
fflush(stdout)
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -100,6 +100,7 @@ public class DebugOutboundEventsHandler: ChannelOutboundHandler {
|
||||
message = "Triggering user outbound event: { \(event) }"
|
||||
}
|
||||
print(message + " in \(context.name)")
|
||||
fflush(stdout)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user