Skip to content

Commit

Permalink
Merged in add-build-info-to-log (pull request #906)
Browse files Browse the repository at this point in the history
Add build info to log

Approved-by: zhangyaning <[email protected]>
  • Loading branch information
TheWaWaR authored and zhangyaning committed May 14, 2018
2 parents 8d94e0a + 6c16e11 commit 362367f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cita-auth/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ fn profiler(flag_prof_start: u64, flag_prof_duration: u64) {
// pool_txs_receiver --> deal_txs
fn main() {
micro_service_init!("cita-auth", "CITA:auth");
info!("Version: {}", get_build_info_str(true));

// init app
let matches = App::new("auth")
.version(get_build_info_str(true))
Expand Down
1 change: 1 addition & 0 deletions cita-chain/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ include!(concat!(env!("OUT_DIR"), "/build_info.rs"));

fn main() {
micro_service_init!("cita-chain", "CITA:chain");
info!("Version: {}", get_build_info_str(true));

let matches = App::new("chain")
.version(get_build_info_str(true))
Expand Down
1 change: 1 addition & 0 deletions cita-executor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ include!(concat!(env!("OUT_DIR"), "/build_info.rs"));

fn main() {
micro_service_init!("cita-executor", "CITA:executor");
info!("Version: {}", get_build_info_str(true));

let matches = App::new("executor")
.version(get_build_info_str(true))
Expand Down
1 change: 1 addition & 0 deletions cita-jsonrpc/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ include!(concat!(env!("OUT_DIR"), "/build_info.rs"));

fn main() {
micro_service_init!("cita-jsonrpc", "CITA:jsonrpc");
info!("Version: {}", get_build_info_str(true));

// todo load config
let matches = App::new("JsonRpc")
Expand Down
2 changes: 2 additions & 0 deletions cita-network/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ include!(concat!(env!("OUT_DIR"), "/build_info.rs"));

fn main() {
micro_service_init!("cita-network", "CITA:network");
info!("Version: {}", get_build_info_str(true));

// init app
// todo load config
let matches = App::new("network")
Expand Down

0 comments on commit 362367f

Please sign in to comment.