From 4c5dca40d74831e5e4828a971e26b48477b022e3 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sat, 8 Jul 2017 20:31:30 +0200 Subject: [PATCH] Ref T104, new log category --- src/blackmisc/logcategory.h | 8 ++++++++ src/blackmisc/logpattern.cpp | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/blackmisc/logcategory.h b/src/blackmisc/logcategory.h index b829cc9af..5777c98ae 100644 --- a/src/blackmisc/logcategory.h +++ b/src/blackmisc/logcategory.h @@ -180,6 +180,13 @@ namespace BlackMisc return cat; } + //! Data inconsistency + static const CLogCategory &dataInconsistency() + { + static const CLogCategory cat { "swift.datainconsistency" }; + return cat; + } + //! Startup of application static const CLogCategory &startup() { @@ -239,6 +246,7 @@ namespace BlackMisc cache(), context(), contextSlot(), + dataInconsistency(), download(), driver(), guiComponent(), diff --git a/src/blackmisc/logpattern.cpp b/src/blackmisc/logpattern.cpp index a7897ae58..e18ec6594 100644 --- a/src/blackmisc/logpattern.cpp +++ b/src/blackmisc/logpattern.cpp @@ -45,8 +45,9 @@ namespace BlackMisc { "swift context slots", exactMatch(CLogCategory::contextSlot()) }, { "swift GUI", exactMatch(CLogCategory::guiComponent()) }, { "downloading data", exactMatch(CLogCategory::download()) }, - { "VASTIM specific", exactMatch(CLogCategory::vatsimSpecific()) }, + { "VATSIM specific", exactMatch(CLogCategory::vatsimSpecific()) }, { "webservice related", exactMatch(CLogCategory::webservice()) }, + { "data inconsistency", exactMatch(CLogCategory::dataInconsistency()) }, { "startup phase", exactMatch(CLogCategory::startup()) }, { "swift DB webservice related", exactMatch(CLogCategory::swiftDbWebservice()) }, { "swift core", exactMatch(CLogCategory::swiftCore()) },