Skip to content

Commit 24eeb8c

Browse files
committed
Reduced HTTP error to a warning in PBS too
1 parent 9959196 commit 24eeb8c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/common/src/pbs/event.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use eyre::{bail, Result};
1212
use reqwest::StatusCode;
1313
use serde::{Deserialize, Serialize};
1414
use tokio::net::TcpListener;
15-
use tracing::{error, info, trace};
15+
use tracing::{error, info, trace, warn};
1616
use url::Url;
1717

1818
use super::{
@@ -51,7 +51,7 @@ impl BuilderEventPublisher {
5151
pub fn new(endpoints: Vec<Url>, http_timeout: Duration) -> Result<Self> {
5252
for endpoint in &endpoints {
5353
if endpoint.scheme() != "https" {
54-
bail!("BuilderEventPublisher endpoints must use HTTPS (endpoint {endpoint} is invalid)");
54+
warn!("BuilderEventPublisher endpoint {endpoint} is insecure, consider using HTTPS if possible instead");
5555
}
5656
}
5757
Ok(Self {

0 commit comments

Comments
 (0)