Load SPDLOG_LEVEL environment variable in unit tests binaries (#606)
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
This commit is contained in:
parent
281cebd386
commit
17090dd8ac
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user