默认不写调试日志

This commit is contained in:
luoliangyi 2022-10-27 17:19:58 +08:00
parent 2bfa367ffb
commit d9c9a9a2b9
2 changed files with 5 additions and 2 deletions

View File

@ -43,8 +43,7 @@ HGResult HGInfoImpl::Enable()
HGBase_GetProfileInt(cfgPath, "info", "writeLog", 1, &writeLog); HGBase_GetProfileInt(cfgPath, "info", "writeLog", 1, &writeLog);
HGBool writeConsole; HGBool writeConsole;
HGBase_GetProfileInt(cfgPath, "info", "writeConsole", 0, &writeConsole); HGBase_GetProfileInt(cfgPath, "info", "writeConsole", 0, &writeConsole);
HGUInt defType = HGBASE_INFOTYPE_FATAL | HGBASE_INFOTYPE_ERROR | HGBASE_INFOTYPE_WARNING HGUInt defType = HGBASE_INFOTYPE_FATAL | HGBASE_INFOTYPE_ERROR | HGBASE_INFOTYPE_WARNING;
| HGBASE_INFOTYPE_DESC | HGBASE_INFOTYPE_DEBUG;
HGBase_GetProfileInt(cfgPath, "info", "type", (HGInt)defType, (HGInt*)&m_type); HGBase_GetProfileInt(cfgPath, "info", "type", (HGInt)defType, (HGInt*)&m_type);
HGBase_GetProfileInt(cfgPath, "info", "showTime", 1, &m_showTime); HGBase_GetProfileInt(cfgPath, "info", "showTime", 1, &m_showTime);
HGBase_GetProfileInt(cfgPath, "info", "showId", 0, &m_showId); HGBase_GetProfileInt(cfgPath, "info", "showId", 0, &m_showId);

View File

@ -135,6 +135,10 @@ namespace ver_2
ret = sqlite3_finalize(stmt); ret = sqlite3_finalize(stmt);
assert(0 == ret); assert(0 == ret);
} }
else
{
HGBase_WriteInfo(HGBASE_INFOTYPE_ERROR, "open database failed");
}
m_bindFolder.clear(); m_bindFolder.clear();
m_bindNameMode.clear(); m_bindNameMode.clear();