mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-08 09:00:34 -04:00
update go-plugin
Includes fix for correct plugin server log levels, preventing everything from logging to Debug.
This commit is contained in:
10
vendor/github.com/hashicorp/go-plugin/client.go
generated
vendored
10
vendor/github.com/hashicorp/go-plugin/client.go
generated
vendored
@@ -976,15 +976,15 @@ func (c *Client) logStderr(r io.Reader) {
|
||||
// Attempt to infer the desired log level from the commonly used
|
||||
// string prefixes
|
||||
switch line := string(line); {
|
||||
case strings.HasPrefix("[TRACE]", line):
|
||||
case strings.HasPrefix(line, "[TRACE]"):
|
||||
l.Trace(line)
|
||||
case strings.HasPrefix("[DEBUG]", line):
|
||||
case strings.HasPrefix(line, "[DEBUG]"):
|
||||
l.Debug(line)
|
||||
case strings.HasPrefix("[INFO]", line):
|
||||
case strings.HasPrefix(line, "[INFO]"):
|
||||
l.Info(line)
|
||||
case strings.HasPrefix("[WARN]", line):
|
||||
case strings.HasPrefix(line, "[WARN]"):
|
||||
l.Warn(line)
|
||||
case strings.HasPrefix("[ERROR]", line):
|
||||
case strings.HasPrefix(line, "[ERROR]"):
|
||||
l.Error(line)
|
||||
default:
|
||||
l.Debug(line)
|
||||
|
||||
Reference in New Issue
Block a user