Watch
0
0
Fork
You've already forked hyperhive
0

log the proxy-credential, cache-miss and users-file passes at info, with counts in the message

This commit is contained in:
atlas 2026-10-28 18:29:53 +01:00 • committed by mara
commit 22522b386a

View file

@ -214,19 +214,19 @@ where
let list = render_unrestricted(&users);
if write_if_changed(files.unrestricted, &list)? {
tracing::info!(
unrestricted = list.lines().count(),
file = %files.unrestricted.display(),
"squid users: wrote the unrestricted list"
"squid users: wrote the unrestricted list, {} unrestricted",
list.lines().count()
);
}
let current = read_or_empty(files.users)?;
let rendered = render(&current, &users)?;
if write_if_changed(files.users, &rendered)? {
tracing::info!(
users = users.len(),
agents = users.iter().filter(|u| !is_selfcheck(&u.name)).count(),
file = %files.users.display(),
"squid users: wrote the users file"
"squid users: wrote the users file, {} users for {} agents",
users.len(),
users.iter().filter(|u| !is_selfcheck(&u.name)).count()
);
}
Ok(())