Skip to content

Commit 81b01e9

Browse files
author
Jan Rochel
committed
always log to console (stderr) not only if -v is given
The right way to control the verbosity with regards to logging is to change the log level.
1 parent 70bd2cf commit 81b01e9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/baselib/ocsigen_messages.ml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,7 @@ let open_files ?(user = Ocsigen_config.get_user ()) ?(group = Ocsigen_config.get
8181
| _ -> Lwt_log.null);
8282
Lwt_log.dispatch
8383
(fun sect lev ->
84-
let show =
85-
match lev with
86-
| Lwt_log.Error | Lwt_log.Fatal ->
87-
not (Ocsigen_config.get_silent ())
88-
| _ ->
89-
Ocsigen_config.get_verbose ()
90-
in
91-
if show then stderr else Lwt_log.null)];
84+
if Ocsigen_config.get_silent () then Lwt_log.null else stderr)];
9285

9386
let gid = match group with
9487
| None -> Unix.getgid ()

0 commit comments

Comments
 (0)