Browse Source
* Add a 'debug' log level * update snapshot * Fix testsremotes/origin/add-simple-redirecting-site
Gal Schlezinger
6 years ago
committed by
GitHub
10 changed files with 72 additions and 38 deletions
@ -1,19 +1,23 @@
@@ -1,19 +1,23 @@
|
||||
type t = |
||||
| Quiet |
||||
| Error |
||||
| All; |
||||
| Info |
||||
| Debug; |
||||
|
||||
let toString = logLevel => |
||||
switch (logLevel) { |
||||
| Quiet => "quiet" |
||||
| Error => "error" |
||||
| All => "all" |
||||
| Info => "info" |
||||
| Debug => "debug" |
||||
}; |
||||
|
||||
let fromString = logLevelString => |
||||
switch (logLevelString) { |
||||
| "quiet" => Quiet |
||||
| "error" => Error |
||||
| "all" => All |
||||
| "info" => Info |
||||
| "debug" |
||||
| "all" => Debug |
||||
| _ => failwith("Unsupported level: " ++ logLevelString) |
||||
}; |
||||
|
Loading…
Reference in new issue