eXist-db / existdb-saml

XQuery module that implements SAML v2 single sign-on
GNU Lesser General Public License v2.1
4 stars 3 forks source link

Dev debuglog #4

Open chakl opened 3 years ago

chakl commented 3 years ago

various improvements:

chakl commented 3 years ago

I believe the custom logging logic introduced with $exsaml:logdebug is for convenience, right?

Actually, it was introduced to stop people editing the module code, just because they want to see a certain log message. They can now enable "debug mode" and see all log messages from this module, including more detailed debug log messages that are not logged in normal operation. Debug mode is for debugging the module's operation. It should not be enabled in normal setups.

This is controlled by the config-exsaml.xml:/config/@debug attribute. false (default) means standard logging, true means verbose debug logging.

But you could argue that changing the level of these log entries should require a restart because it would log sensitive data. What is your though on this?

joewiz commented 1 year ago

@chakl @line-o Is this PR good to go?