Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: log object remove operations to target databend::log::audit #17279

Open
dantengsky opened this issue Jan 14, 2025 · 0 comments
Open
Labels
C-feature Category: feature

Comments

@dantengsky
Copy link
Member

Summary

change logging of sensitive operations, like removing objects:

info!("deleting files {:?}", &locations);
let num_of_files = locations.len();
op.delete_iter(locations).await?;
info!(
"deleted files, number of files {}, time used {:?}",
num_of_files,
start.elapsed(),
);

to dedicate log target databend::log::audit, like this:

log::info!(
target: "databend::log::audit",
"{}",
serde_json::to_string(&AuditElement::create(&user_info, "suspend_warehouse", &self.plan))?
);

@dantengsky dantengsky added the C-feature Category: feature label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature
Projects
None yet
Development

No branches or pull requests

1 participant