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:
Rafał Cieślak
2022-06-07 10:22:18 +00:00
committed by GitHub
parent 3c5eb0989f
commit 2cfacd6fc5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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