HXLStandard/hxl-proxy

Restore log viewing for users

davidmegginson opened this issue · 3 comments

Capping the loglevel at ERROR means that users can no longer view lower-level errors, as in this browser test:

https://proxy.hxlstandard.org/data/logs?dest=data_edit&filter01=clean&clean-date-tags01=date&tagger-match-all=on&tagger-01-header=header+1&tagger-01-tag=%23date&header-row=1&url=https%3A%2F%2Fdocs.google.com%2Fspreadsheets%2Fd%2F1_PstA2iB0W1VdA9zhj2hqyQPFkf_7eZJBhOO3MjxNaE%2Fedit%3Fusp%3Dsharing

Add a second destination for user-level logging, or remove the feature (not sure if it's much used).

Related to #410

Tested with local logging:

  • when I set a high LOGGING_LEVEL like "ERROR", lower-level messages do not appear in the Flask log for the HTTP server, but I'm still able to see lower-level messages in the HXL Proxy logging window

  • when I set a low LOGGING_LEVEL like "INFO", the lower-level messages do appear in the Flask log for the HTTP server

Marking as closed, but @teodorescuserban can reopen if it doesn't perform as expected in the shared infrastructure.