diff options
Diffstat (limited to 'src/logging.h')
-rw-r--r-- | src/logging.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/logging.h b/src/logging.h index 35fb598cef..954731d214 100644 --- a/src/logging.h +++ b/src/logging.h @@ -257,4 +257,11 @@ static inline void LogPrintf_(const std::string& logging_function, const std::st } \ } while (0) +template <typename... Args> +bool error(const char* fmt, const Args&... args) +{ + LogPrintf("ERROR: %s\n", tfm::format(fmt, args...)); + return false; +} + #endif // BITCOIN_LOGGING_H |