File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -85,15 +85,18 @@ let already_send_ref =
85
85
86
86
let % client handle_error =
87
87
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: " ;
89
90
restart_process () ;
90
91
Lwt. return_unit)
91
92
92
93
let % client set_error_handler f = handle_error := f
93
94
94
95
let % client handle_message = function
95
96
| 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
97
100
| Ok Connection_changed ->
98
101
Os_msg. msg ~level: `Err
99
102
" Connection has changed from outside. Program will restart." ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ let%shared msg ?(level = `Err) ?(duration = ~%(!default_duration))
46
46
if ~% onload then Eliom_client. lwt_onload () else Lwt. return_unit
47
47
in
48
48
let msgbox = msgbox () in
49
- Eliom_lib. debug " %s" ~% message;
49
+ Eliom_lib.Lwt_log. ign_info_f " %s" ~% message;
50
50
Dom. appendChild msgbox message_dom;
51
51
let * () = Js_of_ocaml_lwt.Lwt_js. sleep ~% duration in
52
52
Dom. removeChild msgbox message_dom;
Original file line number Diff line number Diff line change @@ -293,9 +293,9 @@ let%shared upload_pic_link ?(a = []) ?(content = [txt "Change profile picture"])
293
293
~input: ~% input ~submit: ~% submit
294
294
~after_submit: close upload_service);
295
295
Lwt. return_unit)
296
- (fun e ->
296
+ (fun exn ->
297
297
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 " → " ;
299
299
Lwt. return_unit))
300
300
: _)]
301
301
:: a)
You can’t perform that action at this time.
0 commit comments