Skip to content

Commit

Permalink
Strip whitespace, update deprecated String.{lowercase -> lowercase_as…
Browse files Browse the repository at this point in the history
…cii}

Signed-off-by: Akanksha Mathur <akanksha.mathur@citrix.com>
  • Loading branch information
Akanksha Mathur committed Feb 14, 2018
1 parent 236beab commit 85a6127
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/syslog.ml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ let facility_of_string s =
|_-> raise (Unknown_facility s)

exception Unknown_level of string
let level_of_string s =
match String.lowercase s with
let level_of_string s =
match String.lowercase_ascii s with
| "emergency" -> Emerg
| "alert" -> Alert
| "critical" -> Crit
Expand All @@ -60,7 +60,7 @@ let level_of_string s =
| "debug" -> Debug
| _-> raise (Unknown_level s)

let string_of_level = function
let string_of_level = function
| Emerg -> "emergency"
| Alert -> "alert"
| Crit -> "critical"
Expand Down

0 comments on commit 85a6127

Please sign in to comment.