revert earlier commit: move logging back to folder.coffee on upload error