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: src/MBrace.Azure/Configuration/Arguments.fs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ type private AzureArguments =
17
17
| Heartbeat_Interval ofseconds:float
18
18
| Heartbeat_Threshold ofseconds:float
19
19
|[<AltCommandLine("-q")>] Quiet
20
-
|[<AltCommandLine("-L")>] Log_Level oflevel:int
20
+
|[<AltCommandLine("-L")>] Log_Level ofLogLevel
21
21
|[<AltCommandLine("-l")>] Log_File ofpath:string
22
22
|[<AltCommandLine("-D")>] Detach
23
23
| Working_Directory ofpath:string
@@ -47,8 +47,8 @@ type private AzureArguments =
47
47
memberarg.Usage=
48
48
match arg with
49
49
| Quiet ->"Suppress logging to stdout by the worker."
50
-
| Log_Level _->"Log level for worker system logs. Critical = 1, Error = 2, Warning = 3, Info = 4, Debug = 5. Defaults to info."
51
-
| Log_File _->"Specify a log file to write worker system logs."
50
+
| Log_Level _->"Log level for worker system logs. Defaults to info."
51
+
| Log_File _->"Specify a log file to write worker system logs. No file logging if left unspecified."
52
52
| Max_Work_Items _->"Specify maximum number of concurrent work items."
53
53
| Heartbeat_Interval _->"Specify the heartbeat interval for the worker in seconds. Defaults to 1 second."
54
54
| Heartbeat_Threshold _->"Specify the heartbeat interval for the worker in seconds. Defaults to 300 seconds."
@@ -110,7 +110,7 @@ type ArgumentConfiguration =
110
110
111
111
match cfg.MaxWorkItems with Some w ->yield Max_Work_Items w | None ->()
112
112
match cfg.WorkerId with Some n ->yield Worker_Id n | None ->()
113
-
match cfg.LogLevel with Some l ->yield Log_Level (int l)| None ->()
113
+
match cfg.LogLevel with Some l ->yield Log_Level l| None ->()
114
114
match cfg.HeartbeatInterval with Some h ->yield Heartbeat_Interval h.TotalSeconds | None ->()
115
115
match cfg.HeartbeatThreshold with Some h ->yield Heartbeat_Threshold h.TotalSeconds | None ->()
116
116
match cfg.LogFile with Some l ->yield Log_File l | None ->()
@@ -153,7 +153,7 @@ type ArgumentConfiguration =
153
153
letmaxWorkItems= parseResult.TryPostProcessResult(<@ Max_Work_Items @>,fun i ->if i <0then failwith "must be positive."elif i >1024then failwith "exceeds 1024 limit."else i)
letlogFile= parseResult.TryPostProcessResult(<@ Log_File @>,fun f -> ignore <| Path.GetFullPath f ; f)// use GetFullPath to validate chars
158
158
letworkerName= parseResult.TryPostProcessResult(<@ Worker_Id @>,fun name -> Validate.subscriptionName name; name)
159
159
letheartbeatInterval= parseResult.TryPostProcessResult(<@ Heartbeat_Interval @>,fun i ->lett= TimeSpan.FromSeconds i inif t < TimeSpan.FromSeconds 1.then failwith "must be positive"else t)
0 commit comments