From: Uwe Hermann Date: Tue, 9 May 2017 20:08:59 +0000 (+0200) Subject: Log settings location when using "-l 5". X-Git-Tag: pulseview-0.4.0~87 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0bd39c0c6fcf31063fca364bfdb23d3d40914ba1;p=pulseview.git 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. --- 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; }