Skip to content

Commit

Permalink
fix: make sure to log spawn errors at log.Error (#939)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
wesbillman authored Feb 15, 2024
1 parent ece24f0 commit e99e174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/common/plugin/spawn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}
Expand Down

0 comments on commit e99e174

Please sign in to comment.