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
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ var (
47
47
metricsPortint
48
48
maxRequestBodySizeint
49
49
unixDomainSocketstring
50
-
apiLogLevelstring
50
+
enableAPILoggingbool
51
51
)
52
52
53
53
const (
@@ -116,7 +116,7 @@ dapr run --app-id myapp --app-port 3000 --app-protocol grpc -- go run main.go
116
116
MetricsPort: metricsPort,
117
117
MaxRequestBodySize: maxRequestBodySize,
118
118
UnixDomainSocket: unixDomainSocket,
119
-
APILogLevel: apiLogLevel,
119
+
EnableAPILogging: enableAPILogging,
120
120
})
121
121
iferr!=nil {
122
122
print.FailureStatusEvent(os.Stderr, err.Error())
@@ -365,7 +365,7 @@ func init() {
365
365
RunCmd.Flags().BoolP("help", "h", false, "Print this help message")
366
366
RunCmd.Flags().IntVarP(&maxRequestBodySize, "dapr-http-max-request-size", "", -1, "Max size of request body in MB")
367
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")
368
+
RunCmd.Flags().BoolVar(&enableAPILogging, "enable-api-logging", false, "Log API calls at INFO verbosity. Valid values are: true or false")
0 commit comments