Fixed error when transfering avatars. Additional logging.

This commit is contained in:
lotodore
2007-10-24 23:17:12 +00:00
parent 2152b90e20
commit 9e180d01f3
7 changed files with 52 additions and 28 deletions
+1 -1
View File
@@ -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;
+10
View File
@@ -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