Skip to content

Commit 88d0f7b

Browse files
committed
增加调试信息
1 parent b371622 commit 88d0f7b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kbe/src/lib/db_mysql/kbe_table_mysql.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,12 @@ bool KBEAccountTableMysql::logAccount(DBInterface * dbi, ACCOUNT_INFOS& info)
415415

416416
// 如果查询失败则返回存在, 避免可能产生的错误
417417
if(!dbi->query(sqlstr.c_str(), sqlstr.size(), false))
418+
{
419+
ERROR_MSG(boost::format("KBEAccountTableMysql::logAccount(%1%): sql(%2%) is failed(%3%)!\n") %
420+
info.name % sqlstr % dbi->getstrerror());
421+
418422
return false;
423+
}
419424

420425
return true;
421426
}

0 commit comments

Comments
 (0)