fix: use Fprint instead of Fprintf for development mode message

pull/5050/head^2
Johnny 1 month ago
parent 3a7538f787
commit ebff15149b

@ -138,7 +138,7 @@ func printGreetings(profile *profile.Profile) {
fmt.Printf("Memos %s started successfully!\n", profile.Version) fmt.Printf("Memos %s started successfully!\n", profile.Version)
if profile.IsDev() { if profile.IsDev() {
fmt.Fprintf(os.Stderr, "Development mode is enabled\n") fmt.Fprint(os.Stderr, "Development mode is enabled\n")
if profile.DSN != "" { if profile.DSN != "" {
fmt.Fprintf(os.Stderr, "Database: %s\n", profile.DSN) fmt.Fprintf(os.Stderr, "Database: %s\n", profile.DSN)
} }

Loading…
Cancel
Save