@@ -53,7 +53,7 @@ let save_history () =
53
53
?max_entries:! UTop. history_file_max_entries fn)
54
54
(function
55
55
| 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) )
57
57
| exn -> Lwt. fail exn )
58
58
59
59
let init_history () =
@@ -68,8 +68,8 @@ let init_history () =
68
68
(fun () -> LTerm_history. load UTop. history fn)
69
69
(function
70
70
| 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) )
73
73
| exn -> Lwt. fail exn )
74
74
75
75
(* +-----------------------------------------------------------------+
@@ -1590,9 +1590,9 @@ let load_inputrc () =
1590
1590
LTerm_inputrc. load
1591
1591
(function
1592
1592
| 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) )
1594
1594
| 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)
1596
1596
| exn -> Lwt. fail exn )
1597
1597
1598
1598
let protocol_version = 1
0 commit comments