Skip to content

Commit

Permalink
feat: polish up text of version info
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiKaiWi committed May 31, 2023
1 parent 5e030ee commit 778a5b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/ceresdb-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const NODE_ADDR: &str = "CERESDB_SERVER_ADDR";
/// overridden.
const CLUSTER_NAME: &str = "CLUSTER_NAME";

/// Default value for version information is not found from environment
const UNKNOWN: &str = "Unknown";

fn fetch_version() -> String {
Expand All @@ -34,7 +35,7 @@ fn fetch_version() -> String {
("\nVersion", version),
("Git commit", git_commit_id),
("Git branch", git_branch),
("Optimize Level", opt_level),
("Opt level", opt_level),
("Rustc version", rustc_version),
("Target", target),
("Build date", build_time),
Expand Down

0 comments on commit 778a5b9

Please sign in to comment.