From ce9ced630799d113b2cf45c6b085c459daff940f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3rebe=20-=20Romain=20GERARD?= Date: Fri, 20 Oct 2023 20:20:47 +0200 Subject: [PATCH] Set default logger to default Former-commit-id: a1edbb0c5344445375306c5a5d397056c5b562aa [formerly 20dfb041da5c6dc6fe7163f17b1db7a3dab715cb] [formerly b6e48d224808bf8f2205d704349c578e5794cd2e [formerly 20c4a7e8f4ea6b3243d2a11aeb7e1b92d28b7294]] Former-commit-id: 261a192871c160827d986e021e6963b726924efd [formerly de4eb41cbc952f50bbe1cf805fb41bd82f496daf] Former-commit-id: 31a47f1142d914390d9d5c24abdcb83d0ca2357c Former-commit-id: edcfa652b503d422fed20886a41dae1b64b97c58 Former-commit-id: aa0aeb7e6496f55a968d9adab5772f2f324bb65b Former-commit-id: b03049554fab28b5c3d149d0f71bc1dd822c3184 [formerly 8a7486bb63c652f9e18aab45b0f33db7e0f37a1e] Former-commit-id: 0a6fcab24c989ecf0f448071c45be9d392f03a80 --- .goreleaser.yaml | 29 ----------------------------- .goreleaser_hook.sh | 27 --------------------------- goreleaser.go | 3 --- src/main.rs | 6 +++++- 4 files changed, 5 insertions(+), 60 deletions(-) delete mode 100644 .goreleaser.yaml delete mode 100755 .goreleaser_hook.sh delete mode 100644 goreleaser.go diff --git a/.goreleaser.yaml b/.goreleaser.yaml deleted file mode 100644 index 31600f9..0000000 --- a/.goreleaser.yaml +++ /dev/null @@ -1,29 +0,0 @@ -project_name: wstunnel -builds: - - main: goreleaser.go - goos: - - linux - - darwin - - windows - goarch: - - amd64 - - arm64 - - arm - goarm: - - 7 - binary: wstunnel - ignore: - - goos: windows - goarch: arm64 - hooks: - post: - - ./.goreleaser_hook.sh {{ .Arch }} {{ .Os }} {{ .ProjectName }} -checksum: - name_template: "checksums.txt" -changelog: - sort: asc - filters: - exclude: - - "^docs:" - - "^test:" - diff --git a/.goreleaser_hook.sh b/.goreleaser_hook.sh deleted file mode 100755 index f19f71c..0000000 --- a/.goreleaser_hook.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash -# - -set -ex - -go_arch=$1 -go_os=$2 -project_name=$3 - -rm -rf dist/* - -case $go_arch in - amd64) rust_arch='x86_64' ;; - arm64) rust_arch='aarch64' ;; - armv7) rust_arch='armv7' ;; - *) echo "unknown arch: $go_arch" && exit 1 ;; -esac -case $go_os in - linux) rust_os='linux' ;; - darwin) rust_os='apple-darwin' ;; - windows) rust_os='windows' ;; - *) echo "unknown os: $go_os" && exit 1 ;; -esac - -# Find artifacts and uncompress in the corresponding directory -find artifacts -type f -wholename "*${rust_arch}*${rust_os}*" -exec cp {} dist/${project_name}_${go_os}_${go_arch} \; - diff --git a/goreleaser.go b/goreleaser.go deleted file mode 100644 index 73c71de..0000000 --- a/goreleaser.go +++ /dev/null @@ -1,3 +0,0 @@ -package main - func main() { -} diff --git a/src/main.rs b/src/main.rs index 7059146..90cab85 100644 --- a/src/main.rs +++ b/src/main.rs @@ -470,7 +470,11 @@ async fn main() { _ => { tracing_subscriber::fmt() .with_ansi(true) - .with_env_filter(EnvFilter::from_default_env()) + .with_env_filter( + EnvFilter::builder() + .with_default_directive(Level::INFO.into()) + .from_env_lossy(), + ) .init(); } }