diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-11-22T22·11-0500 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-11-22T23·17+0000 |
commit | 9945bd174671c6f90ee9b9eafabbf8e717042c7e (patch) | |
tree | 79b1ae22c46759a19e0fe191354ceabfb65cfa17 /third_party/nix/src/libstore | |
parent | 64ef09c47549457d0f2c808ad25c0d3c0efc9cd9 (diff) |
feat(tvix): Convert some DLOGs to VLOGs r/1908
It seems like the amount of logging is causing things to move a little slower - even if that's not really the case, it gets in the way of debugging things. Refs: b/76 Change-Id: I9ea99a3b16e3307a0b0371bad22d03b0e2175af6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2134 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party/nix/src/libstore')
-rw-r--r-- | third_party/nix/src/libstore/download.cc | 2 | ||||
-rw-r--r-- | third_party/nix/src/libstore/pathlocks.cc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/third_party/nix/src/libstore/download.cc b/third_party/nix/src/libstore/download.cc index a2eed7ced8e3..fd472713e6a7 100644 --- a/third_party/nix/src/libstore/download.cc +++ b/third_party/nix/src/libstore/download.cc @@ -588,7 +588,7 @@ struct CurlDownloader : public Downloader { nextWakeup - std::chrono::steady_clock::now()) .count())) : maxSleepTimeMs; - DLOG(INFO) << "download thread waiting for " << sleepTimeMs << " ms"; + VLOG(2) << "download thread waiting for " << sleepTimeMs << " ms"; mc = curl_multi_wait(curlm, extraFDs, 1, sleepTimeMs, &numfds); if (mc != CURLM_OK) { throw nix::Error(format("unexpected error from curl_multi_wait(): %s") % diff --git a/third_party/nix/src/libstore/pathlocks.cc b/third_party/nix/src/libstore/pathlocks.cc index 8a874adbe913..09dec08c458c 100644 --- a/third_party/nix/src/libstore/pathlocks.cc +++ b/third_party/nix/src/libstore/pathlocks.cc @@ -92,7 +92,7 @@ bool PathLocks::lockPaths(const PathSet& paths, const std::string& waitMsg, checkInterrupt(); Path lockPath = path + ".lock"; - DLOG(INFO) << "locking path '" << path << "'"; + VLOG(2) << "locking path '" << path << "'"; AutoCloseFD fd; @@ -115,7 +115,7 @@ bool PathLocks::lockPaths(const PathSet& paths, const std::string& waitMsg, } } - DLOG(INFO) << "lock acquired on '" << lockPath << "'"; + VLOG(2) << "lock acquired on '" << lockPath << "'"; /* Check that the lock file hasn't become stale (i.e., hasn't been unlinked). */ @@ -159,7 +159,7 @@ void PathLocks::unlock() { LOG(WARNING) << "cannot close lock file on '" << i.second << "'"; } - DLOG(INFO) << "lock released on '" << i.second << "'"; + VLOG(2) << "lock released on '" << i.second << "'"; } fds.clear(); |