diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-12-13 17:12:32 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-12-13 19:03:08 +0100 |
commit | d17d46cfc2e38efb63565270a1fba7b03b37de16 (patch) | |
tree | 8ed159270183b137f7a28f5ce7052bd6a6711869 /src | |
parent | df1edd143fcb2532e32bbcb28f774ced1402cda4 (diff) |
More debug info
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/gc.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index fa68cd8f3..e35199b3d 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -533,6 +533,8 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results) AutoCloseFD fdClient = accept(fdServer.get(), nullptr, nullptr); if (!fdClient) continue; + debug("GC roots server accepted new client"); + /* Process the connection in a separate thread. */ auto fdClient_ = fdClient.get(); std::thread clientThread([&, fdClient = std::move(fdClient)]() { @@ -575,7 +577,10 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results) } else printError("received garbage instead of a root from client"); writeFull(fdClient.get(), "1", false); - } catch (Error &) { break; } + } catch (Error & e) { + debug("reading GC root from client: %s", e.msg()); + break; + } } }); |