@@ -53,7 +53,7 @@ let save_history () =
5353 ?max_entries:! UTop. history_file_max_entries fn)
5454 (function
5555 | Unix. Unix_error (error , func , arg ) ->
56- Lwt_log. error_f " cannot save history to %S: %s: %s" fn func (Unix. error_message error)
56+ Logs_lwt. err ( fun m -> m " cannot save history to %S: %s: %s" fn func (Unix. error_message error) )
5757 | exn -> Lwt. fail exn )
5858
5959let init_history () =
@@ -68,8 +68,8 @@ let init_history () =
6868 (fun () -> LTerm_history. load UTop. history fn)
6969 (function
7070 | Unix. Unix_error (error , func , arg ) ->
71- Lwt_log. error_f " cannot load history from %S: %s: %s"
72- fn func (Unix. error_message error)
71+ Logs_lwt. err ( fun m -> m " cannot load history from %S: %s: %s"
72+ fn func (Unix. error_message error) )
7373 | exn -> Lwt. fail exn )
7474
7575(* +-----------------------------------------------------------------+
@@ -1590,9 +1590,9 @@ let load_inputrc () =
15901590 LTerm_inputrc. load
15911591 (function
15921592 | Unix. Unix_error (error , func , arg ) ->
1593- Lwt_log. error_f " cannot load key bindings from %S: %s: %s" LTerm_inputrc. default func (Unix. error_message error)
1593+ Logs_lwt. err ( fun m -> m " cannot load key bindings from %S: %s: %s" LTerm_inputrc. default func (Unix. error_message error) )
15941594 | LTerm_inputrc. Parse_error (fname , line , msg ) ->
1595- Lwt_log. error_f " error in key bindings file %S, line %d: %s" fname line msg
1595+ Logs_lwt. err ( fun m -> m " error in key bindings file %S, line %d: %s" fname line msg)
15961596 | exn -> Lwt. fail exn )
15971597
15981598let protocol_version = 1
0 commit comments