Daniel Nephin
8cfbc8e7c9
http: don't log an error if the request is cancelled
...
Now that we have at least one endpoint that uses context for cancellation we can
encounter this scenario where the returned error is a context.Cancelled or
context.DeadlineExceeded.
If the request.Context().Err() is not nil, then we know the request itself was cancelled, so
we can log a different message at Info level, instad of the error.
2021-07-27 17:06:59 -04:00
..
2020-12-07 13:42:55 -05:00
2021-07-22 13:20:45 -05:00
2021-04-08 11:11:15 +01:00
2021-06-25 16:47:47 -05:00
2021-07-22 13:20:45 -05:00
2021-07-26 17:12:29 -04:00
2021-07-13 12:15:06 -04:00
2021-07-26 15:43:40 -06:00
2020-11-06 20:48:38 -05:00
2021-07-19 15:22:51 -07:00
2021-07-22 13:58:08 -05:00
2021-07-22 13:20:45 -05:00
2021-05-20 12:57:06 -04:00
2021-03-22 10:16:41 +01:00
2021-07-23 16:36:17 -06:00
2021-02-06 20:23:40 -05:00
2021-05-24 10:19:31 -04:00
2021-07-22 13:58:08 -05:00
2021-07-22 13:20:45 -05:00
2021-07-26 17:12:29 -04:00
2021-06-28 17:29:23 -04:00
2021-07-20 15:15:10 +00:00
2021-07-22 13:20:45 -05:00
2020-12-07 13:42:55 -05:00
2020-09-18 17:38:23 -04:00
2021-07-08 15:13:08 -07:00
2021-04-14 12:39:35 -04:00
2021-07-22 13:20:45 -05:00
2021-07-22 13:20:45 -05:00
2021-07-27 13:23:15 -04:00
2021-07-26 17:53:33 -04:00
2021-05-24 10:19:31 -04:00
2021-07-22 13:58:08 -05:00
2021-07-22 13:20:45 -05:00
2020-11-18 13:03:29 -05:00
2020-12-07 13:42:55 -05:00
2021-07-14 12:07:38 -07:00
2021-07-22 13:20:45 -05:00
2020-10-06 13:24:05 -05:00
2021-06-25 16:47:47 -05:00
2021-07-05 19:15:44 -04:00
2021-06-30 20:48:29 -04:00
2020-12-07 13:42:55 -05:00
2020-09-18 17:38:23 -04:00
2020-12-07 13:42:55 -05:00
2020-12-11 14:03:47 -05:00
2021-07-19 15:22:51 -07:00
2021-07-22 13:20:45 -05:00
2020-12-07 13:42:55 -05:00
2021-04-14 12:39:35 -04:00
2020-09-18 17:38:23 -04:00
2021-06-28 17:23:14 -04:00
2021-05-06 13:19:45 -04:00
2021-03-16 18:16:44 -04:00
2020-12-07 13:42:55 -05:00
2021-07-14 12:07:38 -07:00
2021-07-26 17:53:32 -04:00
2021-07-14 18:58:16 -04:00
2021-07-27 17:06:59 -04:00
2020-12-07 13:42:55 -05:00
2021-01-04 11:27:00 -06:00
2020-10-08 14:51:53 -05:00
2020-12-07 13:42:55 -05:00
2021-04-14 16:20:22 -04:00
2021-04-14 16:20:22 -04:00
2020-11-06 20:48:38 -05:00
2020-11-11 13:19:02 -05:00
2021-07-06 18:39:40 -04:00
2021-07-06 18:39:40 -04:00
2020-12-07 13:42:55 -05:00
2020-12-11 14:03:47 -05:00
2020-10-01 11:32:25 +01:00
2020-12-07 13:42:55 -05:00
2020-12-07 13:42:55 -05:00
2021-01-25 17:25:03 -05:00
2021-07-22 13:20:45 -05:00
2021-07-20 10:09:29 -06:00
2020-12-07 13:42:55 -05:00
2020-09-18 17:38:23 -04:00
2021-05-25 09:57:50 -04:00
2021-07-26 17:53:32 -04:00
2021-07-26 17:12:29 -04:00
2021-07-26 17:12:29 -04:00
2020-12-07 13:42:55 -05:00
2020-09-18 17:38:23 -04:00
2020-12-07 13:42:55 -05:00
2020-09-18 17:38:23 -04:00
2021-06-28 17:23:14 -04:00
2021-07-14 18:58:16 -04:00
2021-07-22 13:20:45 -05:00
2021-07-22 13:20:45 -05:00
2020-12-07 13:42:55 -05:00
2021-07-22 13:20:45 -05:00
2021-07-22 13:20:45 -05:00
2020-12-07 13:42:55 -05:00
2021-07-22 13:20:45 -05:00
2020-12-07 13:42:55 -05:00