|
107 | 107 | |
108 | 108 | (* Other arguments *) |
109 | 109 | let () = |
110 | | - Logs.info (fun fmt -> |
111 | | - fmt |
112 | | - (* TODO: lwt-log-to-logs: Labelled argument ~exn was dropped. Use [Printexc.to_string]. *) |
113 | | - "exn") |
| 110 | + Logs.info (fun fmt -> fmt ("exn" ^^ "@\n%s") (Printexc.to_string Not_found)) |
114 | 111 |
|
115 | 112 | let () = |
116 | 113 | Logs.info (fun fmt -> |
|
127 | 124 | (* Other arguments as opt labels *) |
128 | 125 | let () = |
129 | 126 | Logs.info (fun fmt -> |
130 | | - fmt |
131 | | - (* TODO: lwt-log-to-logs: Labelled argument ?exn was dropped. Use [Printexc.to_string]. *) |
132 | | - "exn") |
| 127 | + fmt ("exn" ^^ "@\n%s") |
| 128 | + (Printexc.to_string |
| 129 | + (* TODO: lwt-log-to-logs: Last argument is a [exception option] while [exception] is expected. *) |
| 130 | + (Some Not_found))) |
133 | 131 |
|
134 | 132 | let () = |
135 | 133 | Logs.info (fun fmt -> |
|
147 | 145 | [@@@warning "-5"] |
148 | 146 |
|
149 | 147 | let _ |
| 148 | + (* TODO: lwt-log-to-logs: Last argument is a [exception option] while [exception] is expected. *) |
150 | 149 | (* TODO: lwt-log-to-logs: Labelled argument ?logger was dropped. *) |
151 | | - (* TODO: lwt-log-to-logs: Labelled argument ?location was dropped. *) |
152 | | - (* TODO: lwt-log-to-logs: Labelled argument ?exn was dropped. Use [Printexc.to_string]. *) |
153 | | - = |
| 150 | + (* TODO: lwt-log-to-logs: Labelled argument ?location was dropped. *) = |
154 | 151 | fun ?section:x1 ?exn:x2 ?location:x3 ?logger:x4 x5 -> |
155 | | - Logs.info ?src:x1 (fun fmt -> fmt "%s" x5) |
| 152 | + Logs.info ?src:x1 (fun fmt -> |
| 153 | + fmt ("%s" ^^ "@\n%s") x5 (Printexc.to_string x2)) |
156 | 154 |
|
157 | 155 | let _ = |
158 | 156 | fun ?exn:x1 ?location:x2 ?logger:x3 x4 -> |
159 | 157 | Logs.info |
160 | 158 | ~src: |
| 159 | + (* TODO: lwt-log-to-logs: Last argument is a [exception option] while [exception] is expected. *) |
161 | 160 | (* TODO: lwt-log-to-logs: Labelled argument ?logger was dropped. *) |
162 | 161 | (* TODO: lwt-log-to-logs: Labelled argument ?location was dropped. *) |
163 | | - (* TODO: lwt-log-to-logs: Labelled argument ?exn was dropped. Use [Printexc.to_string]. *) |
164 | | - section (fun fmt -> fmt "%s" x4) |
| 162 | + section (fun fmt -> fmt ("%s" ^^ "@\n%s") x4 (Printexc.to_string x1)) |
165 | 163 |
|
166 | | - let _ |
167 | | - (* TODO: lwt-log-to-logs: Labelled argument ~exn was dropped. Use [Printexc.to_string]. *) |
168 | | - (* TODO: lwt-log-to-logs: Labelled argument ?logger was dropped. *) |
169 | | - (* TODO: lwt-log-to-logs: Labelled argument ?location was dropped. *) = |
170 | | - fun ?location:x1 ?logger:x2 x3 -> Logs.info (fun fmt -> fmt "%s" x3) |
| 164 | + let _ = |
| 165 | + fun ?location:x1 ?logger:x2 x3 -> |
| 166 | + Logs.info (fun fmt -> |
| 167 | + fmt ("%s" ^^ "@\n%s") x3 |
| 168 | + (Printexc.to_string |
| 169 | + (* TODO: lwt-log-to-logs: Labelled argument ?logger was dropped. *) |
| 170 | + (* TODO: lwt-log-to-logs: Labelled argument ?location was dropped. *) |
| 171 | + Not_found)) |
171 | 172 |
|
172 | 173 | let _ |
173 | 174 | (* TODO: lwt-log-to-logs: Labelled argument ~location was dropped. *) |
|
0 commit comments