Skip to content

Commit

Permalink
Dream.run: warn on any use of ~adjust_terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
aantron committed Aug 23, 2024
1 parent ea262bc commit 1419623
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/http/http.ml
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ let run
?key_file
?(builtins = true)
?(greeting = true)
?(adjust_terminal = false)
?adjust_terminal
user's_dream_handler =

let () = if Sys.unix then
Expand All @@ -691,10 +691,10 @@ let run

let log = Log.convenience_log in

if adjust_terminal then begin
log "%s %s"
"The '~adjust_terminal' option is deprecated and will be removed in a"
"future release. Dream no longer truncates long log lines."
(* This should be removed, together with ~adjust_terminal, after a few
releases. The warning is present since 1.0.0~alpha7. *)
if adjust_terminal <> None then begin
Error_handler.log.warning (fun log -> log "~adjust_terminal is deprecated")
end;

if greeting then begin
Expand Down

0 comments on commit 1419623

Please sign in to comment.