| 49 | } |
| 50 | |
| 51 | void Log(const std::string& msg) |
| 52 | { |
| 53 | const std::string full_msg = this->LogMsg(msg); |
| 54 | |
| 55 | if (m_log_category == BCLog::LogFlags::ALL) { |
| 56 | LogInfo("%s\n", full_msg); |
| 57 | } else { |
| 58 | LogDebug(m_log_category, "%s\n", full_msg); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | std::string LogMsg(const std::string& msg) |
| 63 | { |