mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-21 14:35:22 +08:00
Update trace.Component field values of Connect loggers (#12856)
Typically, only the first 9 characters of the component field are logged, so it wasn't possible to differentiate between those two loggers in the log output.
This commit is contained in:
@@ -43,7 +43,7 @@ func (c *Config) CheckAndSetDefaults() error {
|
||||
}
|
||||
|
||||
if c.Log == nil {
|
||||
c.Log = logrus.WithField(trace.Component, "teleterm: api_server")
|
||||
c.Log = logrus.WithField(trace.Component, "conn:apiserver")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
@@ -46,7 +46,7 @@ func (c *Config) CheckAndSetDefaults() error {
|
||||
}
|
||||
|
||||
if c.Log == nil {
|
||||
c.Log = logrus.WithField(trace.Component, "teleterm: storage")
|
||||
c.Log = logrus.WithField(trace.Component, "conn:storage")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user