Fixed exception logging in several places

This commit is contained in:
alena 2011-02-25 09:31:21 -08:00
parent 8062d8d273
commit 65d22a7a15
1 changed files with 2 additions and 2 deletions

View File

@ -843,7 +843,7 @@ public class AccountManagerImpl implements AccountManager, AccountService, Manag
try {
allTemplatesDeleted = _tmpltMgr.delete(callerUserId, template.getId(), null);
} catch (Exception e) {
s_logger.warn("Failed to delete template while removing account: " + template.getName() + " due to: " + e.getMessage());
s_logger.warn("Failed to delete template while removing account: " + template.getName() + " due to: ", e);
allTemplatesDeleted = false;
}
}
@ -1074,7 +1074,7 @@ public class AccountManagerImpl implements AccountManager, AccountService, Manag
return _userAccountDao.findById(dbUser.getId());
} catch (Exception e) {
if (e instanceof CloudRuntimeException) {
s_logger.info("unable to create user: " + e);
s_logger.info("unable to create user: ", e);
} else {
s_logger.warn("unknown exception creating user", e);
}