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
This commit is contained in:
Σrebe - Romain GERARD 2023-10-20 20:20:47 +02:00
parent 36b76cba8e
commit ce9ced6307
4 changed files with 5 additions and 60 deletions

View file

@ -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:"

View file

@ -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} \;

View file

@ -1,3 +0,0 @@
package main
func main() {
}

View file

@ -470,7 +470,11 @@ async fn main() {
_ => { _ => {
tracing_subscriber::fmt() tracing_subscriber::fmt()
.with_ansi(true) .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(); .init();
} }
} }