Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: print version and commit hash early in startup (#17697)

Danny Xu8eaed9081cb5
diff --git a/backend/bin/server/cmd/root.go b/backend/bin/server/cmd/root.go
index 6a3ebff76d..d0bdc25f58 100644
--- a/backend/bin/server/cmd/root.go
+++ b/backend/bin/server/cmd/root.go
@@ -165,6 +165,8 @@ func start() {
profile := activeProfile(flags.dataDir)
+ fmt.Printf("Starting Bytebase %s(%s)...\n", profile.Version, profile.GitCommit)
+
// A safety measure to prevent accidentally resetting user's actual data with demo data.
// For emebeded mode, we control where data is stored and we put demo data in a separate directory
// from the non-demo data.