diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2019-02-06 21:58:33 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2019-02-06 21:58:33 +0200 |
commit | e3e178e07c58f78eaa7066a64d2e6dd9acd66bd3 (patch) | |
tree | d172099b638563118a2df7d313fc96db72dd4889 /src/browser.cpp | |
parent | Fix all profiles being created off-the-record (diff) | |
download | smolbote-e3e178e07c58f78eaa7066a64d2e6dd9acd66bd3.tar.xz |
Use spdlog for logging
Diffstat (limited to 'src/browser.cpp')
-rw-r--r-- | src/browser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/browser.cpp b/src/browser.cpp index 430a7d4..69db6b2 100644 --- a/src/browser.cpp +++ b/src/browser.cpp @@ -37,6 +37,7 @@ #include "urlfilter.h" #include "adblock/adblocklist.h" #include "hostlist/hostlist.h" +#include <spdlog/spdlog.h> Browser::Browser(int &argc, char *argv[], bool allowSecondary) : SingleApplication(argc, argv, allowSecondary, SingleApplication::User | SingleApplication::SecondaryNotification | SingleApplication::ExcludeAppVersion) @@ -118,6 +119,7 @@ QPair<QString, Profile *> Browser::loadProfile(const QString &id, bool isOffTheR } profile->setRequestInterceptor(interceptor); + spdlog::info("Added profile: {}{}", qUtf8Printable(_id), profile->isOffTheRecord() ? " (otr)" : ""); return QPair<QString, WebProfile *>(_id, profile); } |