Skip to content

Commit 0332f1f

Browse files
committed
log#warn and include contextual info
1 parent 3e568b9 commit 0332f1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/action.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,12 @@ module Action (Github_api : Api.Github) (Slack_api : Api.Slack) = struct
247247
match%lwt State.save ctx.state path with
248248
| Ok () -> Lwt.return_unit
249249
| Error msg ->
250-
log#error "%s" msg;
250+
log#warn "failed to save state file %s : %s" path msg;
251251
Lwt.return_unit)
252252
in
253253
Lwt.return_some user_id
254254
| Error msg ->
255-
log#error "%s" msg;
255+
log#warn "failed to query slack auth.test : %s" msg;
256256
Lwt.return_none
257257
in
258258
let process link =

0 commit comments

Comments
 (0)