getodk / getodk/central

Document use of process.stderr.write() vs console.error()

Open
#1,255 1 comment 0 reactions 0 assignees View on GitHub
backend documentation
Dominant language
JavaScript
Stars
226
Forks
235
Avg merge
2d 22h
Merged PRs (30d)
19

Description

In this repo, `process.stderr.write(util.inspect(arg) + '\n')` is preferred over `console.error(arg)`.

Per https://github.com/getodk/central-backend/pull/1414#issuecomment-2669993120, there are reasons `process.stderr.write(util.inspect(arg) + '\n')` is used, but they are not known.

It would be helpful to have this reasoning documented somewhere, as it would seem more idiomatic to use `console.error(arg)`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.