mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-08-19 13:29:49 +00:00
Use stock std::string conversion.
This commit is contained in:
parent
eaf8c0778d
commit
056e7dcde4
9 changed files with 22 additions and 41 deletions
|
@ -21,10 +21,10 @@
|
|||
#include "num_to_token.hpp"
|
||||
#include "tawashi_config.h"
|
||||
#include "duckhandy/stringize.h"
|
||||
#include "spdlog.hpp"
|
||||
#include <cassert>
|
||||
#include <ciso646>
|
||||
#include <string>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <utility>
|
||||
|
||||
namespace tawashi {
|
||||
|
@ -131,17 +131,10 @@ namespace tawashi {
|
|||
#if defined(SPDLOG_DEBUG_ON)
|
||||
{
|
||||
auto statuslog = spdlog::get("statuslog");
|
||||
if (pastie) {
|
||||
statuslog->debug("Retrieving pastie with token \"{}\" gave a result of size {}",
|
||||
std::string(parToken.data(), parToken.size()),
|
||||
pastie->size()
|
||||
);
|
||||
}
|
||||
else {
|
||||
statuslog->debug("Retrieving pastie with token \"{}\" gave no results",
|
||||
std::string(parToken.data(), parToken.size())
|
||||
);
|
||||
}
|
||||
if (pastie)
|
||||
statuslog->debug("Retrieving pastie with token \"{}\" gave a result of size {}", parToken, pastie->size());
|
||||
else
|
||||
statuslog->debug("Retrieving pastie with token \"{}\" gave no results", parToken);
|
||||
}
|
||||
#endif
|
||||
return pastie;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue