clever-tools icon indicating copy to clipboard operation
clever-tools copied to clipboard

Fetching existing logs with --before and --after option keeps running endlessly

Open noisegrrrl opened this issue 6 years ago • 3 comments

Running for instance: clever logs --until 2019-07-16T09:00:00.000Z --after 2019-07-16T08:00:00.000Z > prod.log never terminates. Expected behaviour would be the process to terminate once all logs for this time period have been extracted.

noisegrrrl avatar Jul 16 '19 09:07 noisegrrrl

In the example you gave, --until is silently ignored, and you have only --after, where non-termination is the expected behaviour

divarvel avatar Jul 16 '19 09:07 divarvel

Copied the wrong command indeed, I meant clever logs --before 2019-07-16T09:00:00.000Z --after 2019-07-16T08:00:00.000Z > prod.log

noisegrrrl avatar Jul 16 '19 09:07 noisegrrrl

Indeed. For lines coming from the websocket connections, there is just a filter, but the stream is not closed

divarvel avatar Jul 16 '19 13:07 divarvel

Closing as it is resolved by the V4 logs API

pdesoyres-cc avatar Apr 16 '24 14:04 pdesoyres-cc