You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a controller is configured to print the response body, the response body will not actually appear in the logs until the next newline is printed to stdout.
The best explanation is probably an example. The following is taken from running a version of the kafka-connector built with the connector SDK with a simple function hello that returns "Hello" every time it is invoked.
Line 4 is part of printing the response body, and the expected behavior is that the "Hello\n" message would be printed on the next line. However, the message is not printed until line 9. This is the next point at which a newline is printed to stdout. Note that the message for the second invocation is not printed at all.
To verify that the problem is indeed related to printing a newline to stdout, I created a ResponseSubscriber whose implementation was simply fmt.Println() and subscribed it to the controller. The result exhibits the expected behavior:
When a controller is configured to print the response body, the response body will not actually appear in the logs until the next newline is printed to stdout.
The best explanation is probably an example. The following is taken from running a version of the kafka-connector built with the connector SDK with a simple function
hello
that returns "Hello" every time it is invoked.Line 4 is part of printing the response body, and the expected behavior is that the "Hello\n" message would be printed on the next line. However, the message is not printed until line 9. This is the next point at which a newline is printed to stdout. Note that the message for the second invocation is not printed at all.
To verify that the problem is indeed related to printing a newline to stdout, I created a ResponseSubscriber whose implementation was simply
fmt.Println()
and subscribed it to the controller. The result exhibits the expected behavior:The text was updated successfully, but these errors were encountered: