remove passwords in URLs from all log messages
also load error handler if debugging is enabled