Add extra logging to the ID lookup processing.
This commit is contained in:
parent
8547a210bd
commit
f7b8448963
|
@ -56,7 +56,9 @@ bool CUserDB::lookup(unsigned int id, class CUserDBentry *entry)
|
||||||
|
|
||||||
bool CUserDB::load(std::string const& filename)
|
bool CUserDB::load(std::string const& filename)
|
||||||
{
|
{
|
||||||
FILE* fp = ::fopen(filename.c_str(), "r");
|
LogInfo("Loading ID lookup table from %s", filename.c_str());
|
||||||
|
|
||||||
|
FILE* fp = ::fopen(filename.c_str(), "rt");
|
||||||
if (fp == NULL) {
|
if (fp == NULL) {
|
||||||
LogWarning("Cannot open ID lookup file - %s", filename.c_str());
|
LogWarning("Cannot open ID lookup file - %s", filename.c_str());
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue