Load SPDLOG_LEVEL environment variable in unit tests binaries ()

Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
This commit is contained in:
Tyler Neely 2022-10-20 18:27:52 +02:00 committed by GitHub
parent 281cebd386
commit 17090dd8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,11 +10,13 @@
// licenses/APL.txt.
#include <gtest/gtest.h>
#include <spdlog/cfg/env.h>
#include <utils/logging.hpp>
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
memgraph::logging::RedirectToStderr();
spdlog::set_level(spdlog::level::trace);
spdlog::cfg::load_env_levels();
return RUN_ALL_TESTS();
}