MM-62105 use WARN log level when ws can't report hostname (#29523)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4c27e6ebfe
Коммит
f1d5884532
@@ -780,7 +780,10 @@ func (wc *WebConn) createHelloMessage() *model.WebSocketEvent {
|
||||
|
||||
hostname, err := os.Hostname()
|
||||
if err != nil {
|
||||
wc.Platform.logger.Error("Could not get hostname", mlog.Err(err))
|
||||
wc.Platform.logger.Warn("Could not get hostname",
|
||||
mlog.String("user_id", wc.UserId),
|
||||
mlog.String("conn_id", wc.GetConnectionID()),
|
||||
mlog.Err(err))
|
||||
// return without the hostname in the message
|
||||
return msg
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user