|
@@ -580,7 +580,7 @@ void CSalesRecorderEntity::OnRecordFinished()
|
|
|
|
|
|
void CSalesRecorderEntity::Debug(record_loglevel elevel, const char* fmt, ...)
|
|
|
{
|
|
|
- if (RECORD_LOG_DEBUG <= elevel) {
|
|
|
+ if (RECORD_LOG_DEBUG < elevel) {
|
|
|
va_list arg;
|
|
|
va_start(arg, fmt);
|
|
|
int n = _vscprintf(fmt, arg);
|
|
@@ -601,7 +601,7 @@ void CSalesRecorderEntity::Debug(record_loglevel elevel, const char* fmt, ...)
|
|
|
|
|
|
void CSalesRecorderEntity::vDebug(record_loglevel elevel, const char* str, va_list list)
|
|
|
{
|
|
|
- if (RECORD_LOG_DEBUG <= elevel) {
|
|
|
+ if (RECORD_LOG_DEBUG < elevel) {
|
|
|
int n = _vscprintf(str, list);
|
|
|
if (n >= MAX_PATH) {
|
|
|
char* buf = (char*)malloc((size_t)(n + 1));
|