From 65d22a7a152a00409a7b3928e4bd914c9dfd3312 Mon Sep 17 00:00:00 2001 From: alena Date: Fri, 25 Feb 2011 09:31:21 -0800 Subject: [PATCH] Fixed exception logging in several places --- server/src/com/cloud/user/AccountManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/user/AccountManagerImpl.java b/server/src/com/cloud/user/AccountManagerImpl.java index 2926aae2125..a026c450490 100755 --- a/server/src/com/cloud/user/AccountManagerImpl.java +++ b/server/src/com/cloud/user/AccountManagerImpl.java @@ -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); }