diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index d172586..50ddd7e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,11 +3,14 @@ #include "bookmouse.hpp" +#include <libfud.hpp> + void setupLogging() { spdlog::cfg::load_env_levels(); spdlog::set_pattern("[%H:%M:%S %z] [%^%L%$] [thread %t] %v"); + spdlog::set_level(spdlog::level::debug); } int main(int argc, char* argv[]) @@ -17,6 +20,14 @@ int main(int argc, char* argv[]) setupLogging(); + auto result = fud::getEnv("HOME"); + if (result.isError()) { + spdlog::error("Error getting home variable"); + } else { + auto home = result.getOkay(); + spdlog::info("Home is {}", home.c_str()); + } + bookmouse::Bookmouse bookmouse{}; return bookmouse.run(); } |