log the proxy-credential, cache-miss and users-file passes at info, with counts in the message
This commit is contained in:
parent
5e997ebe2e
commit
22522b386a
1 changed files with 15 additions and 6 deletions
|
|
@ -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(¤t, &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(())
|
||||
|
|
|
|||
Loading…
Reference in a new issue