Skip to content

Commit 45c640b

Browse files
committed
Auto merge of #592 - Mark-Simulacrum:logging, r=Mark-Simulacrum
Add logging to server startup
2 parents 5972e47 + c413840 commit 45c640b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ pub fn run(config: Config, bind: SocketAddr) -> Fallible<()> {
7474
})
7575
.transpose()?;
7676
let agents = Agents::new(db.clone(), &tokens)?;
77+
info!("loaded agents...");
7778
let acl = ACL::new(&config, github_data.as_ref())?;
7879
let metrics = Metrics::new()?;
80+
info!("initialized metrics...");
7981

8082
let data = Data {
8183
config,
@@ -90,6 +92,7 @@ pub fn run(config: Config, bind: SocketAddr) -> Fallible<()> {
9092
let mutex = Arc::new(Mutex::new(data.clone()));
9193

9294
data.reports_worker.spawn(data.clone(), github_data.clone());
95+
info!("spawned reports worker...");
9396
cronjobs::spawn(data.clone());
9497

9598
info!("running server on {}...", bind);

0 commit comments

Comments
 (0)