Skip to content

Commit

Permalink
feat: log deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
maxRN committed Aug 22, 2024
1 parent 6d01c1a commit a119cc5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/http/http.ml
Original file line number Diff line number Diff line change
Expand Up @@ -682,17 +682,19 @@ let run
?key_file
?(builtins = true)
?(greeting = true)
?(adjust_terminal = true)
?(adjust_terminal = false)
user's_dream_handler =

let () = if Sys.unix then
Sys.(set_signal sigpipe Signal_ignore)
in

let _ = adjust_terminal in

let log = Log.convenience_log in

if adjust_terminal then begin
log "The '~adjust_terminal' option is deprecated and will be removed in a future release. Dream no longer truncates long log lines.";
end;

if greeting then begin
let scheme =
if tls then
Expand Down

0 comments on commit a119cc5

Please sign in to comment.