MM-62105 use WARN log level when ws can't report hostname (#29523)

Этот коммит содержится в:
David Krauser
2024-12-10 03:33:44 -05:00
коммит произвёл 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
}