Fix improper usages of logger.Error

Signed-off-by: Maria Shaldibina <mariash@pivotal.io>