Sanitizes logging and stack traces