Skip to content

stdout: changed some logging from stderr to stdout#12

Open
knutaros wants to merge 1 commit into
masterfrom
stdout
Open

stdout: changed some logging from stderr to stdout#12
knutaros wants to merge 1 commit into
masterfrom
stdout

Conversation

@knutaros

@knutaros knutaros commented Dec 2, 2020

Copy link
Copy Markdown
Contributor

clear separation between trace logging to stdout and warning/error logging to stderr

@bolding

bolding commented Dec 12, 2025

Copy link
Copy Markdown
Collaborator

I actually think the original use of stderr is correct. For two reasons:

  1. stderr is for errors AND diagnostics
  2. if stdout is used for diagnostics the concept of piping (in Linux) becomes difficult.

I know GOTM is not used in pipes - at least I'm not aware of it - but out of principle

@knutaros

knutaros commented Dec 12, 2025 via email

Copy link
Copy Markdown
Contributor Author

@bolding

bolding commented Dec 12, 2025

Copy link
Copy Markdown
Collaborator

Is the subroutine only used for reporting out of bounds?

It is clearly a diagnostic and should go to STDERR I think

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.

2 participants