Implement robust logging with flexi_logger and update CI to verify logs
Some checks failed
Smoke tests / Build and smoke test (push) Failing after 1m21s
Smoke tests / Build and smoke test (pull_request) Failing after 1m21s

This commit is contained in:
AI Agent
2026-03-19 18:04:32 -06:00
parent 678543dd9a
commit 3bd180494e
7 changed files with 122 additions and 129 deletions

View File

@@ -83,6 +83,8 @@ impl MudHandler {
state.load_existing_player(self.id, saved, Some(channel), Some(handle));
drop(state);
log::info!("Player '{}' (id={}) logged in", self.username, self.id);
let msg = format!(
"{}\r\n",
ansi::system_msg("Welcome back! Your character has been restored.")
@@ -171,6 +173,13 @@ impl MudHandler {
.map(|c| c.name.clone())
.unwrap_or_default();
log::info!(
"New character created: {} (Race: {}, Class: {})",
self.username,
race_name,
class_name
);
state.create_new_player(
self.id,
self.username.clone(),