maybe `logErrorWithStackTrace` or something like that would be more accurate?