Skip to content

Commit e605406

Browse files
committed
warn instead of error on origin issues
1 parent 8418046 commit e605406

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

be/src/api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,10 @@ pub async fn limit(
264264
) -> Result<axum::response::Response, Error> {
265265
if !account_limit.origins.is_empty() {
266266
match origin_domain {
267-
None => tracing::error!("missing origin"),
267+
None => tracing::warn!("missing origin"),
268268
Some(domain) => {
269269
if !account_limit.origins.contains(domain.0.as_str()) {
270-
tracing::error!("origin {:?} not allowed", domain);
270+
tracing::warn!("origin {:?} not allowed", domain);
271271
}
272272
}
273273
}

0 commit comments

Comments
 (0)