默认不写调试日志
This commit is contained in:
parent
2bfa367ffb
commit
d9c9a9a2b9
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue