aboutsummaryrefslogtreecommitdiff
path: root/src/browser.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2019-02-06 21:58:33 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2019-02-06 21:58:33 +0200
commite3e178e07c58f78eaa7066a64d2e6dd9acd66bd3 (patch)
treed172099b638563118a2df7d313fc96db72dd4889 /src/browser.cpp
parentFix all profiles being created off-the-record (diff)
downloadsmolbote-e3e178e07c58f78eaa7066a64d2e6dd9acd66bd3.tar.xz
Use spdlog for logging
Diffstat (limited to 'src/browser.cpp')
-rw-r--r--src/browser.cpp2
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);
}