summaryrefslogtreecommitdiff
path: root/bowshock/source/application/Application/run.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bowshock/source/application/Application/run.cxx')
-rw-r--r--bowshock/source/application/Application/run.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/bowshock/source/application/Application/run.cxx b/bowshock/source/application/Application/run.cxx
index ddbfed8..c09ce75 100644
--- a/bowshock/source/application/Application/run.cxx
+++ b/bowshock/source/application/Application/run.cxx
@@ -4,17 +4,16 @@
#include <bow/client.hxx>
#include <bow/server.hxx>
-
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <fmt/core.h>
+#include <format>
#include <stdexcept>
#include <string>
-#include <tuple>
-#include <format>
+using namespace ::std::literals::string_literals;
auto bow::Application::run() -> int {
::std::srand(static_cast<int unsigned>(::std::time(nullptr)));
@@ -38,10 +37,10 @@ auto bow::Application::run() -> int {
);
if constexpr (::bow::DEBUG) {
- ::fmt::print("[app] debug mode is enabled\n");
+ ::bow::log("app"s, "debug mode is enabled"s);
}
- ::fmt::print(stderr, "[app] data directory at \"{}\"\n", ::bow::DATA_DIRECTORY);
+ ::bow::log("app"s, ::std::format("data directory at \"{}\"", ::bow::DATA_DIRECTORY));
this->initialise_signal();