Commit 9cb8dc1d authored by Songtronix's avatar Songtronix

Merge branch 'songtronix/log-server-version' into 'master'

log server version

See merge request !860
parents 30e6bbc8 604a6cf1
Pipeline #129974433 failed with stages
in 46 minutes and 21 seconds
......@@ -9,9 +9,12 @@ const TPS: u64 = 30;
fn main() {
// Init logging
if let Err(_) = std::env::var("RUST_LOG") {
std::env::set_var("RUST_LOG", "info");
}
pretty_env_logger::init();
info!("Starting server-cli...");
info!("Starting server...");
// Set up an fps clock
let mut clock = Clock::start();
......@@ -23,7 +26,7 @@ fn main() {
// Create server
let mut server = Server::new(settings).expect("Failed to create server instance!");
info!("Server is ready to accept connections");
info!("Server is ready to accept connections.");
info!("Metrics port: {}", metrics_port);
loop {
......
......@@ -204,6 +204,11 @@ impl Server {
server_settings: settings.clone(),
};
debug!("created veloren server with: {:?}", &settings);
log::info!(
"Server version: {}[{}]",
*common::util::GIT_HASH,
*common::util::GIT_DATE
);
Ok(this)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment