Skip to content
Snippets Groups Projects
Commit 7ab0bc78 authored by nweiz@google.com's avatar nweiz@google.com Committed by Natalie Weizenbaum
Browse files

Remove some unnecessary logs.

R=rnystrom@google.com
BUG=

Review URL: https://codereview.chromium.org//848363003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@42938 260f80e4-7a28-3924-810f-c04153c831b5
parent 6e9c4178
No related branches found
No related tags found
No related merge requests found
...@@ -214,9 +214,7 @@ class GitSource extends CachedSource { ...@@ -214,9 +214,7 @@ class GitSource extends CachedSource {
Future<String> _ensureRevision(PackageId id) { Future<String> _ensureRevision(PackageId id) {
return new Future.sync(() { return new Future.sync(() {
var path = _repoCachePath(id); var path = _repoCachePath(id);
log.fine("ensuring $path has ${id.description}");
if (!entryExists(path)) { if (!entryExists(path)) {
log.fine("$path doesn't exist");
return _clone(_getUrl(id), path, mirror: true) return _clone(_getUrl(id), path, mirror: true)
.then((_) => _getRev(id)); .then((_) => _getRev(id));
} }
...@@ -225,18 +223,13 @@ class GitSource extends CachedSource { ...@@ -225,18 +223,13 @@ class GitSource extends CachedSource {
// reference. We want to get the latest version of that reference. // reference. We want to get the latest version of that reference.
var description = id.description; var description = id.description;
if (description is! Map || !description.containsKey('resolved-ref')) { if (description is! Map || !description.containsKey('resolved-ref')) {
log.fine("ID doesn't have a resolved ref");
return _updateRepoCache(id).then((_) => _getRev(id)); return _updateRepoCache(id).then((_) => _getRev(id));
} }
// If [id] did come from a lockfile, then we want to avoid running "git // If [id] did come from a lockfile, then we want to avoid running "git
// fetch" if possible to avoid networking time and errors. See if the // fetch" if possible to avoid networking time and errors. See if the
// revision exists in the repo cache before updating it. // revision exists in the repo cache before updating it.
return _getRev(id).then((res) { return _getRev(id).catchError((error) {
log.fine("ref is $res");
return res;
}).catchError((error) {
log.fine("repo doesn't have ref, updating");
if (error is! git.GitException) throw error; if (error is! git.GitException) throw error;
return _updateRepoCache(id).then((_) => _getRev(id)); return _updateRepoCache(id).then((_) => _getRev(id));
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment