we need to fflush(stdout) in the DebugInbound/OutboundEventsHandlers
#121
Labels
good first issue
Good for newcomers
swift-nio-extras/Sources/NIOExtras/DebugInboundEventsHandler.swift
Line 109 in de1c80a
This
printwill only happen oncestdioflushes thestdoutbuffer. On a terminal that'll be immediately (usually, because line buffered) but in production, you're likely writing to a pipe and thenstdoutis fully buffered, ie. you'll only see these prints much later.What we need after the
printis aflush(stdout)to flush it straight away.The text was updated successfully, but these errors were encountered: