From 9957f8e290e210642bcbd5a62083fcf78fa88b05 Mon Sep 17 00:00:00 2001 From: Steven Date: Fri, 7 Feb 2025 20:59:14 +0800 Subject: [PATCH] chore: move dsn output to dev mode --- bin/memos/main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/memos/main.go b/bin/memos/main.go index 4e0f7709..6450a73a 100644 --- a/bin/memos/main.go +++ b/bin/memos/main.go @@ -141,17 +141,20 @@ func init() { } func printGreetings(profile *profile.Profile) { + if profile.IsDev() { + println("Development mode is enabled") + println("DSN: ", profile.DSN) + } fmt.Printf(`--- Server profile version: %s data: %s -dsn: %s addr: %s port: %d mode: %s driver: %s --- -`, profile.Version, profile.Data, profile.DSN, profile.Addr, profile.Port, profile.Mode, profile.Driver) +`, profile.Version, profile.Data, profile.Addr, profile.Port, profile.Mode, profile.Driver) print(greetingBanner) if len(profile.Addr) == 0 {