summaryrefslogtreecommitdiffstats
path: root/common/log.h
diff options
context:
space:
mode:
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};