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
Copy file name to clipboardExpand all lines: cmd/run.go
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,7 @@ var (
47
47
metricsPortint
48
48
maxRequestBodySizeint
49
49
unixDomainSocketstring
50
+
apiLogLevelstring
50
51
)
51
52
52
53
const (
@@ -115,6 +116,7 @@ dapr run --app-id myapp --app-port 3000 --app-protocol grpc -- go run main.go
115
116
MetricsPort: metricsPort,
116
117
MaxRequestBodySize: maxRequestBodySize,
117
118
UnixDomainSocket: unixDomainSocket,
119
+
APILogLevel: apiLogLevel,
118
120
})
119
121
iferr!=nil {
120
122
print.FailureStatusEvent(os.Stderr, err.Error())
@@ -363,6 +365,7 @@ func init() {
363
365
RunCmd.Flags().BoolP("help", "h", false, "Print this help message")
364
366
RunCmd.Flags().IntVarP(&maxRequestBodySize, "dapr-http-max-request-size", "", -1, "Max size of request body in MB")
365
367
RunCmd.Flags().StringVarP(&unixDomainSocket, "unix-domain-socket", "u", "", "Path to a unix domain socket dir. If specified, Dapr API servers will use Unix Domain Sockets")
368
+
RunCmd.Flags().StringVarP(&apiLogLevel, "api-log-level", "", "debug", "The api calls log verbosity. Valid values are: debug, info, off")
0 commit comments