From f7bd16076e32926d95cf5e55e9db543f49bb6e03 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Wed, 1 Mar 2023 18:17:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/init/cache/cache.go | 1 + backend/init/db/db.go | 1 + backend/init/migration/migrate.go | 2 +- backend/init/session/session.go | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/init/cache/cache.go b/backend/init/cache/cache.go index 7a68f663e..318fb3627 100644 --- a/backend/init/cache/cache.go +++ b/backend/init/cache/cache.go @@ -51,4 +51,5 @@ func Init() { } global.CACHE = badger_db.NewCacheDB(cache) + global.LOG.Info("init cache successfully") } diff --git a/backend/init/db/db.go b/backend/init/db/db.go index 90bf72a45..4344c1980 100644 --- a/backend/init/db/db.go +++ b/backend/init/db/db.go @@ -28,4 +28,5 @@ func Init() { panic(err) } global.DB = db + global.LOG.Info("init db successfully") } diff --git a/backend/init/migration/migrate.go b/backend/init/migration/migrate.go index 453e6b1d0..001ab56f6 100644 --- a/backend/init/migration/migrate.go +++ b/backend/init/migration/migrate.go @@ -25,5 +25,5 @@ func Init() { global.LOG.Error(err) panic(err) } - global.LOG.Info("Migration did run successfully") + global.LOG.Info("Migration run successfully") } diff --git a/backend/init/session/session.go b/backend/init/session/session.go index 9212b8f06..0eba926e9 100644 --- a/backend/init/session/session.go +++ b/backend/init/session/session.go @@ -7,4 +7,5 @@ import ( func Init() { global.SESSION = psession.NewPSession(global.CACHE) + global.LOG.Info("init session successfully") }