@@ -68,19 +68,19 @@ public void dispatchCreateCmd(BaseAsyncCreateCmd cmd, Map<String, String> params
6868 cmd .callCreate ();
6969 } catch (Throwable t ) {
7070 if (t instanceof InvalidParameterValueException || t instanceof IllegalArgumentException ) {
71- s_logger .info ("Exception: " , t );
71+ s_logger .info (t . getMessage () );
7272 throw new ServerApiException (BaseCmd .PARAM_ERROR , t .getMessage ());
7373 }else if (t instanceof PermissionDeniedException ) {
74- s_logger .info ("Exception: " , t );
74+ s_logger .info (t . getMessage () );
7575 throw new ServerApiException (BaseCmd .ACCOUNT_ERROR , t .getMessage ());
7676 }else if (t instanceof AccountLimitException ) {
77- s_logger .info ("Exception: " , t );
77+ s_logger .info (t . getMessage () );
7878 throw new ServerApiException (BaseCmd .ACCOUNT_RESOURCE_LIMIT_ERROR , t .getMessage ());
7979 }else if (t instanceof InsufficientCapacityException ) {
80- s_logger .info ("Exception: " , t );
80+ s_logger .info (t . getMessage () );
8181 throw new ServerApiException (BaseCmd .INSUFFICIENT_CAPACITY_ERROR , t .getMessage ());
8282 }else if (t instanceof ResourceAllocationException ) {
83- s_logger .info ("Exception: " , t );
83+ s_logger .info (t . getMessage () );
8484 throw new ServerApiException (BaseCmd .RESOURCE_ALLOCATION_ERROR , t .getMessage ());
8585 }else if (t instanceof ResourceUnavailableException ) {
8686 s_logger .warn ("Exception: " , t );
@@ -106,16 +106,16 @@ public void dispatch(BaseCmd cmd, Map<String, String> params) {
106106 cmd .execute ();
107107 } catch (Throwable t ) {
108108 if (t instanceof InvalidParameterValueException || t instanceof IllegalArgumentException ) {
109- s_logger .info ("Exception: " , t );
109+ s_logger .info (t . getMessage () );
110110 throw new ServerApiException (BaseCmd .PARAM_ERROR , t .getMessage ());
111111 }else if (t instanceof PermissionDeniedException ) {
112- s_logger .info ("Exception: " , t );
112+ s_logger .info (t . getMessage () );
113113 throw new ServerApiException (BaseCmd .ACCOUNT_ERROR , t .getMessage ());
114114 }else if (t instanceof AccountLimitException ) {
115- s_logger .info ("Exception: " , t );
115+ s_logger .info (t . getMessage () );
116116 throw new ServerApiException (BaseCmd .ACCOUNT_RESOURCE_LIMIT_ERROR , t .getMessage ());
117117 }else if (t instanceof InsufficientCapacityException ) {
118- s_logger .info ("Exception: " , t );
118+ s_logger .info (t . getMessage () );
119119 throw new ServerApiException (BaseCmd .INSUFFICIENT_CAPACITY_ERROR , t .getMessage ());
120120 }else if (t instanceof ResourceAllocationException ) {
121121 s_logger .warn ("Exception: " , t );
0 commit comments