Update cmd/futriis/main.go
This commit is contained in:
@@ -14,11 +14,6 @@
|
|||||||
// Управляет жизненным циклом приложения.
|
// Управляет жизненным циклом приложения.
|
||||||
|
|
||||||
|
|
||||||
// Файл: cmd/futriis/main.go
|
|
||||||
// Назначение: Точка входа в приложение СУБД futriis. Инициализирует все компоненты:
|
|
||||||
// конфигурацию, логгер, хранилище, Raft координатор, ACL менеджер, HTTP API, WebUI и REPL.
|
|
||||||
// Управляет жизненным циклом приложения.
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -125,7 +120,7 @@ func main() {
|
|||||||
|
|
||||||
if cfg.WebUI.Enabled {
|
if cfg.WebUI.Enabled {
|
||||||
logger.Info(fmt.Sprintf("Web UI started on port %d", webUIPort))
|
logger.Info(fmt.Sprintf("Web UI started on port %d", webUIPort))
|
||||||
// Убрано: вывод строки "Web UI available at http://localhost:9080" в консоль
|
// utils.PrintInfo(fmt.Sprintf("Web UI available at http://localhost:%d", webUIPort))
|
||||||
}
|
}
|
||||||
|
|
||||||
displayBanner(cfg.Cluster.Name, cfg.WebUI.Enabled, webUIPort)
|
displayBanner(cfg.Cluster.Name, cfg.WebUI.Enabled, webUIPort)
|
||||||
@@ -161,12 +156,11 @@ func displayBanner(clusterName string, webUIEnabled bool, webUIPort int) {
|
|||||||
" Distributed Document-Store in-memory database with support lua plugins ",
|
" Distributed Document-Store in-memory database with support lua plugins ",
|
||||||
" Cluster status: enable (Raft consensus)",
|
" Cluster status: enable (Raft consensus)",
|
||||||
" Cluster name: " + clusterName,
|
" Cluster name: " + clusterName,
|
||||||
" HTTP API (with curl only): http://localhost:8080/api/",
|
" HTTP API: http://localhost:8080/api/",
|
||||||
}
|
}
|
||||||
|
|
||||||
if webUIEnabled {
|
if webUIEnabled {
|
||||||
// Строка с Web UI убрана, оставлена только для внутреннего использования
|
bannerLines = append(bannerLines, fmt.Sprintf(" Web UI: http://localhost:%d/", webUIPort))
|
||||||
// bannerLines = append(bannerLines, fmt.Sprintf(" Web UI: http://localhost:%d/", webUIPort))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bannerLines = append(bannerLines, []string{
|
bannerLines = append(bannerLines, []string{
|
||||||
@@ -188,4 +182,4 @@ func printJSON(data interface{}) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Println(string(jsonData))
|
fmt.Println(string(jsonData))
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user