mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
refactor(connlib): Reduce log noisiness for GA (#4381)
Fixes #4380 Fixes #4379
This commit is contained in:
@@ -123,7 +123,7 @@ android {
|
||||
|
||||
buildConfigField("String", "AUTH_BASE_URL", "\"https://app.firezone.dev\"")
|
||||
buildConfigField("String", "API_URL", "\"wss://api.firezone.dev\"")
|
||||
buildConfigField("String", "LOG_FILTER", "\"info\"")
|
||||
buildConfigField("String", "LOG_FILTER", "\"str0m=warn,info\"")
|
||||
firebaseAppDistribution {
|
||||
serviceCredentialsFile = System.getenv("FIREBASE_CREDENTIALS_PATH")
|
||||
artifactType = "AAB"
|
||||
|
||||
@@ -90,7 +90,6 @@ COPY . .
|
||||
|
||||
ARG TARGET
|
||||
ARG PACKAGE
|
||||
ENV CONNLIB_LOG_UPLOAD_INTERVAL_SECS=300
|
||||
RUN cargo build -p ${PACKAGE} $([ -n "${TARGET}" ] && "--target ${TARGET}")
|
||||
|
||||
# Image which is used to run the application binary
|
||||
@@ -103,7 +102,9 @@ FROM alpine:${ALPINE_VERSION} AS runtime
|
||||
ENV REFRESHED_AT=2023-10-23 \
|
||||
LANG=C.UTF-8 \
|
||||
TERM=xterm \
|
||||
RUST_BACKTRACE=1
|
||||
RUST_BACKTRACE=1 \
|
||||
CONNLIB_LOG_UPLOAD_INTERVAL_SECS=300 \
|
||||
RUST_LOG=str0m=warn,info
|
||||
|
||||
WORKDIR /bin
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ impl Io {
|
||||
Ok(None) => {}
|
||||
Err(_) => {
|
||||
// The error might contain sensitive information therefore we ignore it
|
||||
tracing::warn!("Failed to build DNS response from lookup result");
|
||||
tracing::debug!("Failed to build DNS response from lookup result");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ impl Default for AdvancedSettings {
|
||||
Self {
|
||||
auth_base_url: Url::parse("https://app.firezone.dev").unwrap(),
|
||||
api_url: Url::parse("wss://api.firezone.dev").unwrap(),
|
||||
log_filter: "firezone_gui_client=info,firezone_tunnel=info,phoenix_channel=info,connlib_shared=info,connlib_client_shared=info,boringtun=info,snownet=info,str0m=info,warn".to_string(),
|
||||
log_filter: "str0m=warn,info".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ FIREZONE_NAME=${FIREZONE_NAME:-$hostname}
|
||||
FIREZONE_ID=${FIREZONE_ID:-}
|
||||
FIREZONE_TOKEN=${FIREZONE_TOKEN:-}
|
||||
FIREZONE_API_URL=${FIREZONE_API_URL:-wss://api.firezone.dev}
|
||||
RUST_LOG=${RUST_LOG:-info}
|
||||
RUST_LOG=${RUST_LOG:-str0m=warn,info}
|
||||
|
||||
if [ -z "$FIREZONE_TOKEN" ]; then
|
||||
echo "FIREZONE_TOKEN is required"
|
||||
|
||||
@@ -65,7 +65,7 @@ struct Settings: Equatable {
|
||||
Settings(
|
||||
authBaseURL: "https://app.firezone.dev",
|
||||
apiURL: "wss://api.firezone.dev",
|
||||
logFilter: "info"
|
||||
logFilter: "str0m=warn,info"
|
||||
)
|
||||
#endif
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user