Skip to content

Commit

Permalink
details in rate_limit log
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed May 29, 2024
1 parent ec90df2 commit fbab8fc
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/steps/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,14 @@ pub fn verify_rate_limit(
let _ = crate::ops::shell::log(
level,
format!(
"attempting to publish {} new crates which is above the crates.io rate limit",
new
"attempting to publish {} new crates which is above the {} rate limit: {}",
new,
if rate_limit_config.new.is_some() {
"project"
} else {
"crates.io"
},
rate_limit_config.new.unwrap_or(5)
),
);
}
Expand All @@ -257,8 +263,14 @@ pub fn verify_rate_limit(
let _ = crate::ops::shell::log(
level,
format!(
"attempting to publish {} existing crates which is above the crates.io rate limit",
existing
"attempting to publish {} existing crates which is above the {} rate limit: {}",
existing,
if rate_limit_config.existing.is_some() {
"project"
} else {
"crates.io"
},
rate_limit_config.existing.unwrap_or(30)
),
);
}
Expand Down

0 comments on commit fbab8fc

Please sign in to comment.