Implemented review comments to log error message