aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/daemon.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-11-30 20:23:13 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-11-30 20:23:13 +0000
commit1f15441103caab1b41317a6107fc2560eb109a4a (patch)
treeadaf4a30cb0e5789c9b919316001a64fd51dfd00 /src/libstore/daemon.cc
parent1a9bfdc4ca0c2786b02801540432badbafa3a811 (diff)
Tidy up the logging
Use the macros more, so we properly skip work when the log level excludes. Also log the daemon operation number on the daemon side.
Diffstat (limited to 'src/libstore/daemon.cc')
-rw-r--r--src/libstore/daemon.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc
index 2eb566080..58c567b05 100644
--- a/src/libstore/daemon.cc
+++ b/src/libstore/daemon.cc
@@ -951,7 +951,7 @@ void processConnection(
Finally finally([&]() {
_isInterrupted = false;
- prevLogger->log(lvlDebug, fmt("%d operations", opCount));
+ printMsgUsing(prevLogger, lvlDebug, "%d operations", opCount);
});
if (GET_PROTOCOL_MINOR(clientVersion) >= 14 && readInt(from)) {
@@ -984,6 +984,8 @@ void processConnection(
break;
}
+ printMsgUsing(prevLogger, lvlDebug, "received daemon op %d", op);
+
opCount++;
try {