feat: log emitted logging events with tracing

This commit is contained in:
link2xt
2025-06-15 23:05:20 +00:00
committed by l
parent 374a5ef687
commit 5ab107866a
4 changed files with 19 additions and 0 deletions

View File

@@ -53,6 +53,14 @@ impl Accounts {
Accounts::open(dir, writable).await
}
/// Get the ID used to log events.
///
/// Account manager logs events with ID 0
/// which is not used by any accounts.
fn get_id(&self) -> u32 {
0
}
/// Creates a new default structure.
async fn create(dir: &Path) -> Result<()> {
fs::create_dir_all(dir)