fixed log loading to real urls instead of canned data.

This commit is contained in:
Cameron Dawson 2013-08-26 14:41:10 -07:00
Родитель 7bd8e48c8e
Коммит e7694e93a7
1 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -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");
});
});
};
}