From 24b7b58aa08bb5ab397f594c4c80c7f4655043d2 Mon Sep 17 00:00:00 2001 From: Ildar Nurislamov Date: Fri, 31 May 2024 16:44:41 +0400 Subject: [PATCH] fix --- docker-start-console.sh | 3 ++- webapps/console/pages/api/admin/events-log-init.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-start-console.sh b/docker-start-console.sh index 734c567f9..58632e365 100755 --- a/docker-start-console.sh +++ b/docker-start-console.sh @@ -10,6 +10,7 @@ init() { echo "Initializing console..." inited="1" curl --silent --show-error http://$(hostname -f):3000/api/admin/events-log-init?token=$CONSOLE_INIT_TOKEN + echo "" fi } @@ -57,7 +58,7 @@ healthcheck() { if [ -f healthcheck-result ]; then cat healthcheck-result fi - echo "Running init..." + echo "" init else if [ "$http_code" = "000" ]; then diff --git a/webapps/console/pages/api/admin/events-log-init.ts b/webapps/console/pages/api/admin/events-log-init.ts index 2125683b5..eab6bda12 100644 --- a/webapps/console/pages/api/admin/events-log-init.ts +++ b/webapps/console/pages/api/admin/events-log-init.ts @@ -3,7 +3,7 @@ import { checkRawToken, getLog } from "juava"; import { clickhouse } from "../../../lib/server/clickhouse"; import { z } from "zod"; -export const log = getLog("events-log-trim"); +export const log = getLog("events-log-init"); export default createRoute() .GET({