mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Use context timeout to cancel the log request
**What** - Pass the writetimeout to the logs handler to set the context timeout of the log stream. Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
db6628d1a5
commit
6df51a3516
@ -113,7 +113,7 @@ func main() {
|
||||
forwardingNotifiers,
|
||||
)
|
||||
|
||||
faasHandlers.LogProxyHandler = handlers.NewLogHandlerFunc(*config.LogsProviderURL)
|
||||
faasHandlers.LogProxyHandler = handlers.NewLogHandlerFunc(*config.LogsProviderURL, config.WriteTimeout)
|
||||
|
||||
if config.UseNATS() {
|
||||
log.Println("Async enabled: Using NATS Streaming.")
|
||||
|
Reference in New Issue
Block a user