Log on error level. Error message should be more descriptive, like: log.error('Cannot connect to server due to error: %s', err)