You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cli: Add show-startup-logs flag to reduce startup log verbosity (#1218)
* cli: Add show-startup-logs flag to enable/disable startup logs.
This adds the 'show-startup-logs' flag to the tusd server, allowing the
user to enable or disable startup logs. This helps the user suppress
startup logs as per their preference.
Fixes#1216.
* Final touches
---------
Co-authored-by: Marius Kleidl <[email protected]>
Copy file name to clipboardExpand all lines: cmd/tusd/cli/flags.go
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,7 @@ var Flags struct {
72
72
PprofMutexProfileRateint
73
73
BehindProxybool
74
74
VerboseOutputbool
75
+
ShowStartupLogsbool
75
76
LogFormatstring
76
77
S3TransferAccelerationbool
77
78
TLSCertFilestring
@@ -190,9 +191,10 @@ func ParseFlags() {
190
191
f.StringVar(&Flags.PprofPath, "pprof-path", "/debug/pprof/", "Path under which the pprof endpoint will be accessible")
191
192
f.IntVar(&Flags.PprofBlockProfileRate, "pprof-block-profile-rate", 0, "Fraction of goroutine blocking events that are reported in the blocking profile")
192
193
f.IntVar(&Flags.PprofMutexProfileRate, "pprof-mutex-profile-rate", 0, "Fraction of mutex contention events that are reported in the mutex profile")
193
-
f.BoolVar(&Flags.ShowGreeting, "show-greeting", true, "Show the greeting message")
194
+
f.BoolVar(&Flags.ShowGreeting, "show-greeting", true, "Show the greeting message for GET requests to the root path")
194
195
f.BoolVar(&Flags.ShowVersion, "version", false, "Print tusd version information")
0 commit comments