Skip to content

Commit 85a6127

Browse files
author
Akanksha Mathur
committed
Strip whitespace, update deprecated String.{lowercase -> lowercase_ascii}
Signed-off-by: Akanksha Mathur <[email protected]>
1 parent 236beab commit 85a6127

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/syslog.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ let facility_of_string s =
4848
|_-> raise (Unknown_facility s)
4949

5050
exception Unknown_level of string
51-
let level_of_string s =
52-
match String.lowercase s with
51+
let level_of_string s =
52+
match String.lowercase_ascii s with
5353
| "emergency" -> Emerg
5454
| "alert" -> Alert
5555
| "critical" -> Crit
@@ -60,7 +60,7 @@ let level_of_string s =
6060
| "debug" -> Debug
6161
| _-> raise (Unknown_level s)
6262

63-
let string_of_level = function
63+
let string_of_level = function
6464
| Emerg -> "emergency"
6565
| Alert -> "alert"
6666
| Crit -> "critical"

0 commit comments

Comments
 (0)