Fixed error when transfering avatars. Additional logging.
This commit is contained in:
@@ -511,7 +511,7 @@ AvatarManager::InternalReadDirectory(const std::string &dir, AvatarMap &avatars)
|
||||
}
|
||||
} catch (...)
|
||||
{
|
||||
LOG_ERROR("Exception caught when trying to scan cache directory.");
|
||||
LOG_ERROR("Exception caught when trying to scan avatar directory.");
|
||||
retVal = false;
|
||||
}
|
||||
return retVal;
|
||||
|
||||
@@ -34,6 +34,14 @@
|
||||
syslog(LOG_ERR, "%s", outStream.str()); \
|
||||
} \
|
||||
while(false)
|
||||
#define LOG_MSG(e) \
|
||||
do \
|
||||
{ \
|
||||
std::ostringstream outStream; \
|
||||
outStream << e << std::endl; \
|
||||
syslog(LOG_INFO, "%s", outStream.str()); \
|
||||
} \
|
||||
while(false)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -41,6 +49,8 @@
|
||||
#include <iostream>
|
||||
#define LOG_ERROR(e) \
|
||||
std::cout << e << std::endl
|
||||
#define LOG_MSG(e) \
|
||||
std::cout << e << std::endl
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user