aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 135d0ee..65c8c26 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -10,10 +10,7 @@
#include "cmd/cmd.hpp"
#include "configuration.h"
#include "util.h"
-#include <QFile>
-#include <QPluginLoader>
#include <QStandardPaths>
-#include <pluginloader.h>
#include <spdlog/spdlog.h>
namespace builtins
@@ -26,10 +23,11 @@ int sub_session(const QStringList &l, Browser &);
int main(int argc, char **argv)
{
// spdlog pattern
- if(const char *env_spdlog = std::getenv("POI_LOG_PATTERN"))
+ if(const char *env_spdlog = std::getenv("POI_LOG_PATTERN")) {
spdlog::set_pattern(env_spdlog);
- else
+ } else {
spdlog::set_pattern("[%^%l%$] [%P:%t] %v");
+ }
#ifdef QT_DEBUG
spdlog::set_level(spdlog::level::debug); // Set global log level to debug