Skip to content

merge stdout and stderr logs#2138

Closed
myaaaaaaaaa wants to merge 1 commit intonix-community:masterfrom
myaaaaaaaaa:merge-logs
Closed

merge stdout and stderr logs#2138
myaaaaaaaaa wants to merge 1 commit intonix-community:masterfrom
myaaaaaaaaa:merge-logs

Conversation

@myaaaaaaaaa
Copy link

Makes it easier to trace what happened without having to match events across two separate files.

How it works:

# stdout captured but not stderr
$ bash -ex -c 'echo hi'  >greet.log
+ echo hi
$ cat greet.log
hi


# stderr captured but not stdout
$ bash -ex -c 'echo hi'  2>greet.log
hi
$ cat greet.log
+ echo hi


# both streams captured
$ bash -ex -c 'echo hi'  >greet.log 2>&1
$ cat greet.log
+ echo hi
hi

@zowoq
Copy link
Contributor

zowoq commented Feb 17, 2026

@rhendric was there a reason you had these separate?

@rhendric
Copy link
Member

rhendric commented Feb 17, 2026

Only that it's easier to destroy information than reconstruct it.

But OP's concern is entirely theoretical; there are no stdout logs. Scratch that, the workers have stdout.

@rhendric
Copy link
Member

This seems like an X-Y problem. OP is the person trying to jerry-rig maintainer notifications by scraping every log; if we're going to make infra changes to support them, they should be the changes needed to expose the needed information directly, not changes that still require them to scrape megabytes of output to get what they want.

@zowoq
Copy link
Contributor

zowoq commented Feb 17, 2026

I'll close this in favour of nix-community/nixpkgs-update#520.

@zowoq zowoq closed this Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants