We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 236beab commit 85a6127Copy full SHA for 85a6127
lib/syslog.ml
@@ -48,8 +48,8 @@ let facility_of_string s =
48
|_-> raise (Unknown_facility s)
49
50
exception Unknown_level of string
51
-let level_of_string s =
52
- match String.lowercase s with
+let level_of_string s =
+ match String.lowercase_ascii s with
53
| "emergency" -> Emerg
54
| "alert" -> Alert
55
| "critical" -> Crit
@@ -60,7 +60,7 @@ let level_of_string s =
60
| "debug" -> Debug
61
| _-> raise (Unknown_level s)
62
63
-let string_of_level = function
+let string_of_level = function
64
| Emerg -> "emergency"
65
| Alert -> "alert"
66
| Crit -> "critical"
0 commit comments