Skip to content

Commit 2e41689

Browse files
authored
Merge pull request #688 from ocsigen/deprecated
No longer use deprecated functions
2 parents 638f875 + e13bf67 commit 2e41689

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/os_comet.eliom

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,18 @@ let already_send_ref =
8585

8686
let%client handle_error =
8787
ref (fun exn ->
88-
Eliom_lib.debug_exn "Exception received on Os_comet's monitor channel: " exn;
88+
Eliom_lib.Lwt_log.ign_info_f ~exn
89+
"Exception received on Os_comet's monitor channel: ";
8990
restart_process ();
9091
Lwt.return_unit)
9192

9293
let%client set_error_handler f = handle_error := f
9394

9495
let%client handle_message = function
9596
| Error exn -> !handle_error exn
96-
| Ok Heartbeat -> Eliom_lib.debug "poum"; Lwt.return_unit
97+
| Ok Heartbeat ->
98+
Eliom_lib.Lwt_log.ign_info_f "poum";
99+
Lwt.return_unit
97100
| Ok Connection_changed ->
98101
Os_msg.msg ~level:`Err
99102
"Connection has changed from outside. Program will restart.";

src/os_msg.eliom

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ let%shared msg ?(level = `Err) ?(duration = ~%(!default_duration))
4646
if ~%onload then Eliom_client.lwt_onload () else Lwt.return_unit
4747
in
4848
let msgbox = msgbox () in
49-
Eliom_lib.debug "%s" ~%message;
49+
Eliom_lib.Lwt_log.ign_info_f "%s" ~%message;
5050
Dom.appendChild msgbox message_dom;
5151
let* () = Js_of_ocaml_lwt.Lwt_js.sleep ~%duration in
5252
Dom.removeChild msgbox message_dom;

src/os_user_view.eliom

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ let%shared upload_pic_link ?(a = []) ?(content = [txt "Change profile picture"])
293293
~input:~%input ~submit:~%submit
294294
~after_submit:close upload_service);
295295
Lwt.return_unit)
296-
(fun e ->
296+
(fun exn ->
297297
Os_msg.msg ~level:`Err "Error while uploading the picture";
298-
Eliom_lib.debug_exn "%s" e "";
298+
Eliom_lib.Lwt_log.ign_info_f "%s" ~exn "";
299299
Lwt.return_unit))
300300
: _)]
301301
:: a)

0 commit comments

Comments
 (0)