Remove unnecessary stack traces from logging