err -> err.Error() in logging