mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +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)
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user