From 0bd39c0c6fcf31063fca364bfdb23d3d40914ba1 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 9 May 2017 22:08:59 +0200 Subject: [PATCH] Log settings location when using "-l 5". This can have various types (e.g. a file or a registry entry) and it can be in various locations on different OSes, so having this as part of the log output is pretty useful. --- main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.cpp b/main.cpp index 690a559c..d0ca64a2 100644 --- a/main.cpp +++ b/main.cpp @@ -27,6 +27,7 @@ #include #include +#include #ifdef ENABLE_SIGNALS #include "signalhandler.hpp" @@ -120,6 +121,11 @@ int main(int argc, char *argv[]) srd_log_loglevel_set(loglevel); #endif + if (loglevel >= 5) { + const QSettings settings; + qDebug() << "Settings:" << settings.fileName() + << "format" << settings.format(); + } break; } -- 2.30.2