summaryrefslogtreecommitdiffstats
path: root/common/log.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-23 12:57:46 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-23 12:57:46 +0100
commit87d70a4c3c52a9b6bb5c905bf02ec526f01f859f (patch)
treef01f6865553e982b2b9de15efcdb94147e56b243 /common/log.h
parentdc0039b46a37c7850d78810684f3ce97afd0df1c (diff)
downloadsink-87d70a4c3c52a9b6bb5c905bf02ec526f01f859f.tar.gz
sink-87d70a4c3c52a9b6bb5c905bf02ec526f01f859f.zip
Better debug output
Diffstat (limited to 'common/log.h')
-rw-r--r--common/log.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/log.h b/common/log.h
index fc2a3ed..d1776ac 100644
--- a/common/log.h
+++ b/common/log.h
@@ -13,6 +13,9 @@ struct Context {
13 13
14 QByteArray name; 14 QByteArray name;
15 Context subContext(const QByteArray &sub) const { 15 Context subContext(const QByteArray &sub) const {
16 if (name.isEmpty()) {
17 return Context{sub};
18 }
16 return Context{name + "." + sub}; 19 return Context{name + "." + sub};
17 } 20 }
18}; 21};