Postgraphile: Add a `--debug` or similar CLI option to avoid needing envvars

Created on 17 Jul 2018  路  2Comments  路  Source: graphile/postgraphile

I'm not completely sure what options to include, or how to express them. I was considering making it a level like --verbosity error, 'warn', 'info', 'debug', 'excessive'. Or maybe a numeric value like --debug 9. Or maybe a string of keywords like --debug sql,errors,plugins,.... It needs to be intuitive or be able to be documented trivially in --help.

馃拝 enhancement

Most helpful comment

A number of users have expressed they find it hard to debug errors because they can't see the errors within the client and the server doesn't log them. A debug mode that outputs the input and output from PostGraphile would be helpful. Level one: queries, level 2: queries + errors, level 3: queries + errors + data, level 4: queries + errors + data + headers.

All 2 comments

A number of users have expressed they find it hard to debug errors because they can't see the errors within the client and the server doesn't log them. A debug mode that outputs the input and output from PostGraphile would be helpful. Level one: queries, level 2: queries + errors, level 3: queries + errors + data, level 4: queries + errors + data + headers.

@benjie what Are there env vars that can be set currently to enable server error logging? Found em: https://www.graphile.org/postgraphile/debugging/#debugging

Was this page helpful?
0 / 5 - 0 ratings

Related issues

giacomorebonato picture giacomorebonato  路  3Comments

Venryx picture Venryx  路  4Comments

k-ogawa-1988 picture k-ogawa-1988  路  3Comments

kilianc picture kilianc  路  4Comments

jwdotjs picture jwdotjs  路  5Comments