cloudflare / cloudflare/cloudflared

💡 strip the debug_info of binary when release

Open
#1,062 0 comments 0 reactions 0 assignees View on GitHub
Priority: Normal Type: Feature Request
Dominant language
Go
Stars
15.6k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

I found this.
```
file cloudflared-linux-amd64
cloudflared-linux-amd64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=oK0vpRlgwfKnPPB8dk0h/gpCcPtX2mw7Y5jBsuaJE/mLS01QDoEr7JsAR1gK5e/I3x9adObSUx5uKWwLhaO, with debug_info, not stripped
```
It can reduce the file size.
```
strip cloudflared
```

otherwise, with `TZ: Asia/Shanghai`, the time format in the log is not very consistent.
I think a format like '2023/09/04 17:23:52' looks more pleasing.
``` text
2023-09-04T09:23:52Z INF Starting tunnel tunnelID=
2023-09-04T09:23:52Z INF Version 2023.8.2
2023-09-04T09:23:52Z INF GOOS: linux, GOVersion: go1.20.6, GoArch: amd64
2023-09-04T09:23:52Z INF Settings:
2023-09-04T09:23:52Z INF Generated Connector ID:
2023-09-04T09:23:52Z INF Initial protocol quic
2023-09-04T09:23:52Z INF ICMP proxy will use
2023-09-04T09:23:52Z INF ICMP proxy will use
2023-09-04T09:23:52Z INF Starting metrics server on
2023/09/04 17:23:52 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Receive-Buffer-Size for details.
2023-09-04T09:23:53Z INF Registered tunnel connection connIndex=0 connection=
2023-09-04T09:23:54Z INF Registered tunnel connection connIndex=2 connection=
2023-09-04T09:23:58Z WRN Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=1 event=0 ip=
2023-09-04T09:23:58Z INF Retrying connection in up to 2s connIndex=1 event=0 ip=
2023-09-04T09:23:58Z WRN Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=1
2023-09-04T09:24:00Z WRN Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=3 event=0 ip=
2023-09-04T09:24:00Z INF Retrying connection in up to 2s connIndex=3 event=0 ip=
2023-09-04T09:24:00Z WRN Connection terminated error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=3
2023-09-04T09:24:14Z INF Registered tunnel connection connIndex=1 connection=
2023-09-04T09:24:19Z WRN Failed to create new quic connection error="failed to dial to edge with quic: timeout: no recent network activity" connIndex=3 event=0 ip=
2023-09-04T09:24:19Z INF Retrying connection in up to 4s connIndex=3 event=0 ip=
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.