 		fetchLogs = (logFile, blgFile) ->
 
 			getFile = (name, file) ->
+				console.log "[getFile]", name, file
 				opts =
 					method:"GET"
 					params:

				$scope.pdf.view = 'errors'
				$scope.pdf.failure = true
				$scope.shouldShowLogs = true
				fetchLogs()
			else if response.status == 'clsi-maintenance'
				$scope.pdf.view = 'errors'
				$scope.pdf.clsiMaintenance = true

			$scope.pdf.clsiMaintenance = false
			$scope.pdf.tooRecentlyCompiled = false
			$scope.pdf.renderingError = false

			# make a cache to look up files by name
			fileByPath = {}
			for file in response.outputFiles
				fileByPath[file.path] = file

			if response.status == "timedout"
				$scope.pdf.view = 'errors'
