diff options
author | TheMorc <r.gracik@gmail.com> | 2023-08-24 08:37:48 +0200 |
---|---|---|
committer | TheMorc <r.gracik@gmail.com> | 2023-08-24 08:42:05 +0200 |
commit | c166831955517d6999e6b4f48bf3085b05b06a76 (patch) | |
tree | d1bda9466df8768db72b606caa57f1d92a9dbb51 /src/platform.cpp | |
parent | 0b918a748af6b9e0904db6a67b74e880035cd4a9 (diff) | |
download | abaddon-portaudio-c166831955517d6999e6b4f48bf3085b05b06a76.tar.gz abaddon-portaudio-c166831955517d6999e6b4f48bf3085b05b06a76.zip |
platform.cpp switch logging to spdlog
Diffstat (limited to 'src/platform.cpp')
-rw-r--r-- | src/platform.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/platform.cpp b/src/platform.cpp index 0117e17..70e1c20 100644 --- a/src/platform.cpp +++ b/src/platform.cpp @@ -103,7 +103,7 @@ std::string Platform::FindResourceFolder() { } } - puts("cant find a resources folder, will try to load from cwd"); + spdlog::get("discord")->warn("cant find a resources folder, will try to load from cwd"); found_path = "."; found = true; return found_path; @@ -133,7 +133,7 @@ std::string Platform::FindConfigFile() { } // fallback to cwd if cant find + cant make in ~/.config - puts("can't find configuration file!"); + spdlog::get("discord")->warn("can't find configuration file!"); return "./abaddon.ini"; } @@ -147,13 +147,13 @@ std::string Platform::FindStateCacheFolder() { if (util::IsFolder(home_path)) return home_path; } - puts("can't find cache folder!"); + spdlog::get("discord")->warn("can't find cache folder!"); return "."; } #else std::string Platform::FindResourceFolder() { - puts("unknown OS, trying to load resources from cwd"); + spdlog::get("discord")->warn("unknown OS, trying to load resources from cwd"); return "."; } @@ -161,12 +161,12 @@ std::string Platform::FindConfigFile() { const auto x = std::getenv("ABADDON_CONFIG"); if (x != nullptr) return x; - puts("unknown OS, trying to load config from cwd"); + spdlog::get("discord")->warn("unknown OS, trying to load config from cwd"); return "./abaddon.ini"; } std::string Platform::FindStateCacheFolder() { - puts("unknown OS, setting state cache folder to cwd"); + spdlog::get("discord")->warn("unknown OS, setting state cache folder to cwd"); return "."; } #endif |