Benjamin Buzbee
dc6b08851d
Return buffered text from log endpoint if decoding fails ( #15558 )
...
To see why I think this is a good change lets look at why I am making it
My disk was full, which means GC was happening agressively. So by the
time I called the logging endpoint from the SDK, the logs were GC'd
The error I was getting before was:
```
invalid character 'i' in literal false (expecting 'l')
```
Now the error I get is:
```
failed to decode log endpoint response as JSON: "failed to list entries: open /tmp/nomad.data.4219353875/alloc/f11fee50-2b66-a7a2-d3ec-8442cb3d557a/alloc/logs: no such file or directory"
```
Still not super descriptive but much more debugable
2023-01-16 10:39:56 +01:00
..
2022-08-26 16:06:24 -04:00
2023-01-09 09:37:08 -06:00
2023-01-01 12:57:26 -06:00
2022-12-15 09:18:55 +01:00
2023-01-01 12:57:26 -06:00
2022-01-06 11:56:13 -05:00
2022-02-02 14:32:26 -06:00
2023-01-03 16:11:35 -06:00
2022-08-24 17:43:07 -04:00
2023-01-01 12:57:26 -06:00
2022-08-16 15:00:38 -05:00
2023-01-01 12:57:26 -06:00
2023-01-01 12:57:26 -06:00
2020-10-21 14:05:46 -04:00
2023-01-12 08:20:54 -06:00
2023-01-12 10:39:10 -06:00
2023-01-01 12:57:26 -06:00
2022-09-08 13:30:05 -04:00
2022-08-02 16:33:08 +02:00
2023-01-01 12:57:26 -06:00
2022-11-14 14:08:13 -05:00
2023-01-01 12:57:26 -06:00
2022-10-19 14:12:23 +02:00
2023-01-01 12:57:26 -06:00
2023-01-16 10:39:56 +01:00
2023-01-16 10:39:56 +01:00
2023-01-16 10:39:56 +01:00
2023-01-01 12:57:26 -06:00
2022-08-05 17:05:47 +02:00
2023-01-03 15:40:38 -06:00
2022-11-02 16:58:24 -04:00
2023-01-01 12:57:26 -06:00
2022-09-13 10:05:03 -04:00
2022-12-16 12:25:28 -06:00
2022-07-06 16:30:11 +02:00
2022-12-22 08:21:00 -06:00
2022-04-15 17:22:45 -07:00
2020-02-16 16:04:59 -06:00
2023-01-01 12:57:26 -06:00
2023-01-01 12:57:26 -06:00
2020-10-14 15:16:10 -04:00
2023-01-01 12:57:26 -06:00
2022-07-06 16:13:48 +02:00
2023-01-01 12:57:26 -06:00
2022-08-26 16:06:24 -04:00
2022-07-06 16:30:11 +02:00
2020-10-28 14:32:16 +00:00
2022-12-22 08:21:00 -06:00
2021-12-15 10:44:03 -05:00
2023-01-01 12:57:26 -06:00
2022-11-08 11:26:28 +01:00
2023-01-01 12:57:26 -06:00
2022-08-17 18:26:34 +02:00
2023-01-01 12:57:26 -06:00
2021-04-16 16:36:07 -06:00
2023-01-01 12:57:26 -06:00
2022-08-05 17:05:47 +02:00
2023-01-01 12:57:26 -06:00
2022-08-17 18:26:34 +02:00
2023-01-01 12:57:26 -06:00
2016-03-17 16:04:09 -07:00
2023-01-01 12:57:26 -06:00
2017-08-24 11:55:10 +02:00
2023-01-01 12:57:26 -06:00
2022-11-04 13:23:01 -04:00
2022-12-16 12:25:28 -06:00
2023-01-01 12:57:26 -06:00
2022-08-17 18:26:34 +02:00
2023-01-01 12:57:26 -06:00
2022-09-22 13:15:05 -04:00