mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 23:13:50 +00:00
Add extra logging to the ID lookup processing.
This commit is contained in:
parent
8547a210bd
commit
f7b8448963
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue