gristlabs_grist-core/stubs/app/server
Florent 76fcfd733e
Small: Log requests body (#913)
Add body in log requests.

GRIST_LOG_SKIP_HTTP is a badly named environment variable and its
expected values are confusing (to log the requests, you actually have to
set its value to "", and setting to "false" actually is equivalent to
setting to "true").

We deprecate this env variable in favor of GRIST_LOG_HTTP which is more
convenient and understandable:
 - by default, its undefined, so nothing is logged;
 - to enable the logs, you just have to set GRIST_LOG_HTTP=true

Also this commit removes the default value for GRIST_LOG_SKIP_HTTP,
because we don't have to set it to "true" to actually disable the
requests logging thanks to GRIST_LOG_HTTP. FlexServer now handles
the historical behavior for this deprecated variable.

---------

Co-authored-by: Jonathan Perret <j-github@jonathanperret.net>
2024-08-27 06:38:35 -04:00
..
lib config: remove all async/await around config read functions 2024-07-18 14:32:46 -04:00
declarations.d.ts Shutdown Doc worker when it is not considered as available in Redis #831 (#856) 2024-04-04 10:25:42 -04:00
prometheus-exporter.ts Add option to serve Prometheus metrics #671 (#693) 2023-10-24 17:36:53 -04:00
server.ts Small: Log requests body (#913) 2024-08-27 06:38:35 -04:00
tmp.d.ts (core) move home server into core 2020-07-21 20:39:10 -04:00