Skip to content

Commit 55a1336

Browse files
committed
Improve logging
1 parent b89aea1 commit 55a1336

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

OpenLdapSync/src/org/labkey/openldapsync/OpenLdapSyncController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public ApiResponse execute(LdapForm form, BindException errors) throws Exception
125125
}
126126
catch (LdapException e)
127127
{
128-
_log.error(e);
128+
_log.error(e.getMessage(), e);
129129
errors.reject(ERROR_MSG, e.getMessage());
130130
return null;
131131
}
@@ -528,7 +528,7 @@ public ApiResponse execute(Object form, BindException errors) throws Exception
528528
}
529529
catch (Exception e)
530530
{
531-
_log.error(e);
531+
_log.error(e.getMessage(), e);
532532
errors.reject(ERROR_MSG, e.getMessage() == null ? "unable to connect to LDAP server" : e.getMessage());
533533
return null;
534534
}

SequenceAnalysis/src/org/labkey/sequenceanalysis/SequenceAnalysisController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ public ApiResponse execute(ValidateReadsetImportForm form, BindException errors)
11911191
{
11921192
ExceptionUtil.logExceptionToMothership(getViewContext().getRequest(), e);
11931193
errors.reject(ERROR_MSG, e.getMessage());
1194-
_log.error(e);
1194+
_log.error(e.getMessage(), e);
11951195
return null;
11961196
}
11971197
return new ApiSimpleResponse(resultProperties);
@@ -4821,7 +4821,7 @@ public ApiResponse execute(ImportTracksForm form, BindException errors) throws E
48214821
catch (IOException e)
48224822
{
48234823
errors.reject(ERROR_MSG, e.getMessage());
4824-
_log.error(e);
4824+
_log.error(e.getMessage(), e);
48254825

48264826
return null;
48274827
}
@@ -4837,7 +4837,7 @@ public ApiResponse execute(ImportTracksForm form, BindException errors) throws E
48374837
catch (PipelineValidationException e)
48384838
{
48394839
errors.reject(ERROR_MSG, e.getMessage());
4840-
_log.error(e);
4840+
_log.error(e.getMessage(), e);
48414841

48424842
return null;
48434843
}

SequenceAnalysis/src/org/labkey/sequenceanalysis/query/SequenceTriggerHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public String extractAASequence(int refNtId, List<List<Number>> exons, boolean i
136136
}
137137
catch (IOException e)
138138
{
139-
_log.error(e);
139+
_log.error(e.getMessage(), e);
140140
return null;
141141
}
142142
}

0 commit comments

Comments
 (0)