mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-20 22:45:44 +08:00
Add extra logging to the ID lookup processing.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user