aboutsummaryrefslogtreecommitdiff
path: root/zen/cmds/cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zen/cmds/cache.cpp')
-rw-r--r--zen/cmds/cache.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/zen/cmds/cache.cpp b/zen/cmds/cache.cpp
index 3f4a4cdc3..69e500293 100644
--- a/zen/cmds/cache.cpp
+++ b/zen/cmds/cache.cpp
@@ -3,10 +3,10 @@
#include "cache.h"
#include <zencore/filesystem.h>
+#include <zencore/logging.h>
#include <zenhttp/httpcommon.h>
#include <zenserverprocess.h>
-#include <spdlog/spdlog.h>
#include <memory>
// cpr ////////////////////////////////////////////////////////////////////
@@ -39,7 +39,7 @@ DropCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
m_Options.parse_positional({"bucket", "positional"});
m_Options.parse(argc, argv);
- spdlog::info("Dropping cache bucket '{}' from '{}'", m_BucketName, m_HostName);
+ ZEN_INFO("Dropping cache bucket '{}' from '{}'", m_BucketName, m_HostName);
cpr::Session Session;
Session.SetUrl({"{}/z$/{}"_format(m_HostName, m_BucketName)});
@@ -47,18 +47,18 @@ DropCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
if (zen::IsHttpSuccessCode(Result.status_code))
{
- spdlog::info("OK: dropped cache bucket '{}' from '{}'", m_BucketName, m_HostName);
+ ZEN_INFO("OK: dropped cache bucket '{}' from '{}'", m_BucketName, m_HostName);
return 0;
}
if (Result.status_code)
{
- spdlog::error("Drop failed: {}: {} ({})", Result.status_code, Result.reason, Result.text);
+ ZEN_ERROR("Drop failed: {}: {} ({})", Result.status_code, Result.reason, Result.text);
}
else
{
- spdlog::error("Drop failed: {}", Result.error.message);
+ ZEN_ERROR("Drop failed: {}", Result.error.message);
}
return 1;