aboutsummaryrefslogtreecommitdiff
path: root/zencore-test/zencore-test.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-15 21:30:56 +0200
committerStefan Boberg <[email protected]>2021-09-15 21:30:56 +0200
commit681721f66359e90ee0e5d8967f6195230e361e5d (patch)
tree9f57b3531da6e8227086e80541f655873f7c7323 /zencore-test/zencore-test.cpp
parentFixed logging.h so it doesn't leak `using namespace std::literals` declaration (diff)
downloadzen-681721f66359e90ee0e5d8967f6195230e361e5d.tar.xz
zen-681721f66359e90ee0e5d8967f6195230e361e5d.zip
Added explicit logging initialization to main() of standalone executables, to make things work with the new default logger shadowing changes
Diffstat (limited to 'zencore-test/zencore-test.cpp')
-rw-r--r--zencore-test/zencore-test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/zencore-test/zencore-test.cpp b/zencore-test/zencore-test.cpp
index 8c53cf349..1782f1926 100644
--- a/zencore-test/zencore-test.cpp
+++ b/zencore-test/zencore-test.cpp
@@ -1,8 +1,8 @@
// zencore-test.cpp : Defines the entry point for the console application.
//
-#include <zencore/sha1.h>
#include <zencore/zencore.h>
+#include <zencore/logging.h>
#define DOCTEST_CONFIG_IMPLEMENT
#include <doctest/doctest.h>
@@ -17,5 +17,7 @@ forceLinkTests()
int
main(int argc, char* argv[])
{
+ zen::logging::InitializeLogging();
+
return doctest::Context(argc, argv).run();
}