mirror of
https://github.com/getnora-io/nora.git
synced 2026-04-12 23:10:32 +00:00
style: cargo fmt
DevITWay
This commit is contained in:
@@ -45,11 +45,7 @@ pub struct AuditLog {
|
||||
impl AuditLog {
|
||||
pub fn new(storage_path: &str) -> Self {
|
||||
let path = PathBuf::from(storage_path).join("audit.jsonl");
|
||||
let writer = match OpenOptions::new()
|
||||
.create(true)
|
||||
.append(true)
|
||||
.open(&path)
|
||||
{
|
||||
let writer = match OpenOptions::new().create(true).append(true).open(&path) {
|
||||
Ok(f) => {
|
||||
info!(path = %path.display(), "Audit log initialized");
|
||||
Mutex::new(Some(f))
|
||||
|
||||
Reference in New Issue
Block a user