Skip to content

Commit

Permalink
Add extra logging to the ID lookup processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx committed Jun 27, 2021
1 parent 8547a21 commit f7b8448
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion UserDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f7b8448

Please sign in to comment.