Skip to content

Commit

Permalink
Turn on LR debug on test servers
Browse files Browse the repository at this point in the history
  • Loading branch information
actionshrimp committed Apr 17, 2018
1 parent 6e2455a commit 7460575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_files_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ let make_handler () =
~body:(Sexplib.Sexp.to_string_hum (Cohttp.Request.sexp_of_t req))
()
in
let handler = Livereload.make_handler [{ local_dir = "test/static"; server_path = "/static" }] next in
let handler = Livereload.make_handler ~debug:true [{ local_dir = "test/static"; server_path = "/static" }] next in
fun conn req body ->
Lwt_io.eprintf "[CONN] %s\n%!" (Cohttp.Connection.to_string @@ snd conn)
>>= fun _ ->
Expand Down
2 changes: 1 addition & 1 deletion test/test_opium_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let index = Printf.sprintf {|

let hello = get "/" (fun _ -> `String index |> respond')

let lr_handler = Livereload.make_handler [{ local_dir = "test/static"; server_path = "/static" }]
let lr_handler = Livereload.make_handler ~debug:true [{ local_dir = "test/static"; server_path = "/static" }]

let app =
let static = Middleware.static ~local_path:"test/static" ~uri_prefix:"/static" in
Expand Down

0 comments on commit 7460575

Please sign in to comment.