From e7694e93a796c54bed312dd4344f7a092dc1d322 Mon Sep 17 00:00:00 2001 From: Cameron Dawson Date: Mon, 26 Aug 2013 14:41:10 -0700 Subject: [PATCH] fixed log loading to real urls instead of canned data. --- ui/js/controllers/logviewer.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/ui/js/controllers/logviewer.js b/ui/js/controllers/logviewer.js index f503ba583..2b1237e74 100644 --- a/ui/js/controllers/logviewer.js +++ b/ui/js/controllers/logviewer.js @@ -49,12 +49,16 @@ treeherder.controller('LogviewerCtrl', }; $scope.init = function() { - $http.get('resources/logs/mozilla-inbound_ubuntu64_vm-debug_test-mochitest-other-bm53-tests1-linux-build122.logview.json').success(function(data) { - $scope.jsonObj = data; - }); - $http.get('resources/logs/mozilla-inbound_ubuntu64_vm-debug_test-mochitest-other-bm53-tests1-linux-build122.txt').success(function(data) { - $scope.logData = data.split("\n"); - }); + thArtifact.getArtifact($scope.lvArtifactId). + success(function(data) { + $scope.jsonObj = data.blob; + $scope.logurl = data.blob.logurl; + console.log("logUrl: " + $scope.logurl); + $http.get($scope.logurl). + success(function(data) { + $scope.logData = data.split("\n"); + }); + }); }; }