summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/admin.go2
-rw-r--r--einterfaces/cluster.go1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/admin.go b/app/admin.go
index 6e6f8c604..609e37c96 100644
--- a/app/admin.go
+++ b/app/admin.go
@@ -28,7 +28,7 @@ func GetLogs(page, perPage int) ([]string, *model.AppError) {
if einterfaces.GetClusterInterface() != nil && *utils.Cfg.ClusterSettings.Enable {
lines = append(lines, "-----------------------------------------------------------------------------------------------------------")
lines = append(lines, "-----------------------------------------------------------------------------------------------------------")
- lines = append(lines, einterfaces.GetClusterInterface().GetClusterId())
+ lines = append(lines, einterfaces.GetClusterInterface().GetMyClusterInfo().Hostname)
lines = append(lines, "-----------------------------------------------------------------------------------------------------------")
lines = append(lines, "-----------------------------------------------------------------------------------------------------------")
}
diff --git a/einterfaces/cluster.go b/einterfaces/cluster.go
index 9d61b7503..6f42cae1a 100644
--- a/einterfaces/cluster.go
+++ b/einterfaces/cluster.go
@@ -15,6 +15,7 @@ type ClusterInterface interface {
RegisterClusterMessageHandler(event string, crm ClusterMessageHandler)
GetClusterId() string
IsLeader() bool
+ GetMyClusterInfo() *model.ClusterInfo
GetClusterInfos() []*model.ClusterInfo
SendClusterMessage(cluster *model.ClusterMessage)
NotifyMsg(buf []byte)