Better would be logger.error or something like that.