Add extra logging to the ID lookup processing.

This commit is contained in:
Jonathan Naylor 2021-06-27 22:16:26 +01:00
parent 8547a210bd
commit f7b8448963
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ bool CUserDB::lookup(unsigned int id, class CUserDBentry *entry)
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) {
LogWarning("Cannot open ID lookup file - %s", filename.c_str());
return false;