mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
Lint
This commit is contained in:
+5
-3
@@ -1,4 +1,5 @@
|
||||
#include "git_version.h"
|
||||
#include "magic_enum/magic_enum.hpp"
|
||||
#include "mainwindow.hpp"
|
||||
#include "spdlog/async.h"
|
||||
#include "spdlog/sinks/stdout_color_sinks.h"
|
||||
@@ -8,7 +9,6 @@
|
||||
#include <QCommandLineParser>
|
||||
#include <QProcess>
|
||||
#include <QUrl>
|
||||
#include "magic_enum/magic_enum.hpp"
|
||||
|
||||
#ifdef EMSCRIPTEN
|
||||
#include <emscripten.h>
|
||||
@@ -56,7 +56,8 @@ int main(int argc, char *argv[])
|
||||
QCoreApplication::translate("main", "default"), QLatin1String(""));
|
||||
parser.addOption(default_sim_option);
|
||||
|
||||
QCommandLineOption log_option(QStringList() << "l"
|
||||
QCommandLineOption log_option(
|
||||
QStringList() << "l"
|
||||
<< "log",
|
||||
QCoreApplication::translate("main", "Log level for the unisim server [default: trace]."),
|
||||
QCoreApplication::translate("main", "log"), QLatin1String("trace"));
|
||||
@@ -65,7 +66,8 @@ int main(int argc, char *argv[])
|
||||
parser.process(a);
|
||||
// Initialize the logger
|
||||
init_logger();
|
||||
spdlog::set_level(magic_enum::enum_cast<spdlog::level::level_enum>(parser.value(log_option).toStdString()).value_or(spdlog::level::off));
|
||||
spdlog::set_level(magic_enum::enum_cast<spdlog::level::level_enum>(parser.value(log_option).toStdString())
|
||||
.value_or(spdlog::level::off));
|
||||
|
||||
QUrl url;
|
||||
url.setScheme("ws");
|
||||
|
||||
+5
-3
@@ -6,8 +6,8 @@
|
||||
#include "spdlog/sinks/stdout_color_sinks.h"
|
||||
#include "spdlog/spdlog.h"
|
||||
|
||||
#include "magic_enum/magic_enum.hpp"
|
||||
#include "git_version.h"
|
||||
#include "magic_enum/magic_enum.hpp"
|
||||
#include "simulators.hpp"
|
||||
|
||||
void init_logger()
|
||||
@@ -38,7 +38,8 @@ int main(int argc, char *argv[])
|
||||
<< "port",
|
||||
QCoreApplication::translate("main", "Port for the unisim server [default: 9002]."),
|
||||
QCoreApplication::translate("main", "port"), QLatin1String("9002"));
|
||||
QCommandLineOption log_option(QStringList() << "l"
|
||||
QCommandLineOption log_option(
|
||||
QStringList() << "l"
|
||||
<< "log",
|
||||
QCoreApplication::translate("main", "Log level for the unisim server [default: trace]."),
|
||||
QCoreApplication::translate("main", "log"), QLatin1String("trace"));
|
||||
@@ -76,7 +77,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
// Initialize the logger
|
||||
init_logger();
|
||||
spdlog::set_level(magic_enum::enum_cast<spdlog::level::level_enum>(parser.value(log_option).toStdString()).value_or(spdlog::level::off));
|
||||
spdlog::set_level(magic_enum::enum_cast<spdlog::level::level_enum>(parser.value(log_option).toStdString())
|
||||
.value_or(spdlog::level::off));
|
||||
|
||||
// The server starts in this thread
|
||||
SPDLOG_INFO("Starting server");
|
||||
|
||||
Reference in New Issue
Block a user