air icon indicating copy to clipboard operation
air copied to clipboard

Air randomly outputs same thing on either stout and stderr

Open pancsta opened this issue 10 months ago • 1 comments

Ran into a problem with a json formatter not always formatting air's output, turns out air sometimes outputs on stderr instead of stdout.

  • workaround air 2>&1 | fblog
  • source ticket and repro steps here https://github.com/brocode/fblog/issues/115

pancsta avatar Feb 21 '25 05:02 pancsta

I ran into same issue when trying to format logs with jq.

  • air | jq -R 'try fromjson catch .': Some logs are going to stderr and are not processed by jq.
  • air 2>&1 | jq -R 'try fromjson catch .': Works as expected.

Tested without using air to ensure that this problem is introduced by air.

vermacodes avatar Oct 03 '25 03:10 vermacodes