//#include "main.h" // for g_settings
#include <sstream>
#include "strfnd.h"
-#include "debug.h"
+#include "log.h"
std::set<std::string> privsToSet(u64 privs)
{
}
catch(SerializationError &e)
{
- dstream<<"WARNING: AuthManager: creating "
+ infostream<<"WARNING: AuthManager: creating "
<<m_authfilepath<<std::endl;
}
}
{
JMutexAutoLock lock(m_mutex);
- dstream<<"AuthManager: loading from "<<m_authfilepath<<std::endl;
+ infostream<<"AuthManager: loading from "<<m_authfilepath<<std::endl;
std::ifstream is(m_authfilepath.c_str(), std::ios::binary);
if(is.good() == false)
{
- dstream<<"AuthManager: failed loading from "<<m_authfilepath<<std::endl;
+ infostream<<"AuthManager: failed loading from "<<m_authfilepath<<std::endl;
throw SerializationError("AuthManager::load(): Couldn't open file");
}
{
JMutexAutoLock lock(m_mutex);
- dstream<<"AuthManager: saving to "<<m_authfilepath<<std::endl;
+ infostream<<"AuthManager: saving to "<<m_authfilepath<<std::endl;
std::ofstream os(m_authfilepath.c_str(), std::ios::binary);
if(os.good() == false)
{
- dstream<<"AuthManager: failed saving to "<<m_authfilepath<<std::endl;
+ infostream<<"AuthManager: failed saving to "<<m_authfilepath<<std::endl;
throw SerializationError("AuthManager::save(): Couldn't open file");
}
#include <sstream>
#include <set>
#include "strfnd.h"
-#include "debug.h"
+#include "log.h"
BanManager::BanManager(const std::string &banfilepath):
m_banfilepath(banfilepath),
}
catch(SerializationError &e)
{
- dstream<<"WARNING: BanManager: creating "
+ infostream<<"WARNING: BanManager: creating "
<<m_banfilepath<<std::endl;
}
}
void BanManager::load()
{
JMutexAutoLock lock(m_mutex);
- dstream<<"BanManager: loading from "<<m_banfilepath<<std::endl;
+ infostream<<"BanManager: loading from "<<m_banfilepath<<std::endl;
std::ifstream is(m_banfilepath.c_str(), std::ios::binary);
if(is.good() == false)
{
- dstream<<"BanManager: failed loading from "<<m_banfilepath<<std::endl;
+ infostream<<"BanManager: failed loading from "<<m_banfilepath<<std::endl;
throw SerializationError("BanManager::load(): Couldn't open file");
}
void BanManager::save()
{
JMutexAutoLock lock(m_mutex);
- dstream<<"BanManager: saving to "<<m_banfilepath<<std::endl;
+ infostream<<"BanManager: saving to "<<m_banfilepath<<std::endl;
std::ofstream os(m_banfilepath.c_str(), std::ios::binary);
if(os.good() == false)
{
- dstream<<"BanManager: failed loading from "<<m_banfilepath<<std::endl;
+ infostream<<"BanManager: failed loading from "<<m_banfilepath<<std::endl;
throw SerializationError("BanManager::load(): Couldn't open file");
}