diff options
| author | troido <troido@protonmail.com> | 2020-09-26 15:06:12 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-09-26 15:06:12 +0200 |
| commit | 5a965b1dd369985698104c7cf99e6a0d10e0ec05 (patch) | |
| tree | 67746d9a7c97b07545a8b7b3389e9b25a2d5b554 /src/main.rs | |
| parent | 9e69a2d3004e83a74cb876ae6c6fbdfb6ed167fb (diff) | |
include timestamps in logs
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 58faf21..6cd0f24 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,7 @@ use std::time::Duration; use std::path::PathBuf; use std::sync::{Arc, atomic::{AtomicBool, Ordering}}; use structopt::StructOpt; +use chrono::Utc; mod server; mod gameserver; @@ -131,7 +132,7 @@ fn main(){ }).expect("can't set close handler"); - println!("asciifarm started"); + println!("asciifarm started on {}", Utc::now()); while running.load(Ordering::SeqCst) { @@ -181,6 +182,7 @@ fn main(){ println!("saving world"); world.save(); println!("world saved"); + println!("shutting down on {}", Utc::now()); } |
