From e99e174bdc3e004514cdc3ee50c3da4ff5f025c3 Mon Sep 17 00:00:00 2001 From: Wes Date: Wed, 14 Feb 2024 17:10:23 -0700 Subject: [PATCH] fix: make sure to log spawn errors at log.Error (#939) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Example of an error on `var db = ftl.PostgresDatabase("not_a_db")` ![Screenshot 2024-02-14 at 3 25 52 PM](https://github.com/TBD54566975/ftl/assets/51647/bf0eec33-a1f1-49f9-b9b6-e1b6d060a98f) --- backend/common/plugin/spawn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/common/plugin/spawn.go b/backend/common/plugin/spawn.go index ffa7d159c..8f03835ee 100644 --- a/backend/common/plugin/spawn.go +++ b/backend/common/plugin/spawn.go @@ -142,7 +142,7 @@ func Spawn[Client PingableClient]( go func() { cancelWithCause(cmd.Wait()) }() go func() { - err := log.JSONStreamer(pipe, logger, log.Debug) + err := log.JSONStreamer(pipe, logger, log.Error) if err != nil { logger.Errorf(err, "Error streaming plugin logs.") }