websauna.system.core.loggingcapture module

Extra logging context.

websauna.system.core.loggingcapture.get_logging_user_context(request)[source]

Capture some extra user-specific information from the logging context.

Return type

dict

Returns

Dict containing human readable user parameters to help identify the user on this request

websauna.system.core.loggingcapture.is_good_sqlalchemy_object(obj)[source]

Let’s not cause exceptions in exception handler/logger.