| 77 | ~BgFetchState() { TSMutexDestroy(_lock); } |
| 78 | |
| 79 | void |
| 80 | createLog(const std::string &log_name) |
| 81 | { |
| 82 | if (!_log) { |
| 83 | Dbg(Bg_dbg_ctl, "Creating log name %s", log_name.c_str()); |
| 84 | TSAssert(TS_SUCCESS == TSTextLogObjectCreate(log_name.c_str(), TS_LOG_MODE_ADD_TIMESTAMP, &_log)); |
| 85 | } else { |
| 86 | TSError("[%s] A log file was already create, ignoring creation of %s", PLUGIN_NAME, log_name.c_str()); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | TSTextLogObject |
| 91 | getLog() |
no test coverage detected