Uses promise instead of callback for handleNewErrorLog.