Skip to content

Commit 004e1b7

Browse files
committed
Improve logging
1 parent 7c99d93 commit 004e1b7

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

GenotypeAssays/src/org/labkey/genotypeassays/GenotypeAssaysManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ private void processSet(String assayType, Map<Integer, List<Map<String, Object>>
320320
}
321321
catch (Exception e)
322322
{
323-
_log.error(e);
323+
_log.error(e.getMessage(), e);
324324
throw new IllegalArgumentException(e.getMessage());
325325
}
326326
}

mGAP/src/org/labkey/mgap/mGAPController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ public boolean handlePost(Object o, BindException errors) throws Exception
877877
}
878878
catch (Exception e)
879879
{
880-
_log.error(e);
880+
_log.error(e.getMessage(), e);
881881
throw e;
882882
}
883883

primeseq/src/org/labkey/primeseq/PrimeseqController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ else if (!sf.lookupContainer().hasPermission(getUser(), ReadPermission.class))
476476
catch (IOException | PipelineJobException e)
477477
{
478478
errors.reject(ERROR_MSG, "Unable to read pipeline JSON");
479-
_log.error(e);
479+
_log.error(e.getMessage(), e);
480480
return null;
481481
}
482482
}

primeseq/src/org/labkey/primeseq/pipeline/ClusterMaintenanceTask.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ public void run(Logger log)
9393
{
9494
RemoteWorkTask task = new RemoteWorkTask(jobGuids);
9595
PipeRoot pr = PipelineService.get().getPipelineRootSetting(ContainerManager.getHomeContainer());
96-
File subdir = new File(pr.getRootPath(), "clusterMaintenance");
96+
File subdir = FileUtil.appendName(pr.getRootPath(), "clusterMaintenance");
9797
if (!subdir.exists())
9898
{
9999
subdir.mkdirs();
100100
}
101101

102-
File logFile = new File(subdir, "Maintenance-" + engine.getType() + "." + FileUtil.getTimestamp() + ".log");
102+
File logFile = FileUtil.appendName(subdir, "Maintenance-" + engine.getType() + "." + FileUtil.getTimestamp() + ".log");
103103

104104
jr.execute(new Job()
105105
{
@@ -113,7 +113,7 @@ public void run()
113113
}
114114
catch (PipelineValidationException e)
115115
{
116-
_log.error(e);
116+
_log.error(e.getMessage(), e);
117117
}
118118
}
119119
});
@@ -209,7 +209,7 @@ private void inspectFolder(Logger log, File workDirBase)
209209
}
210210
catch (IOException e)
211211
{
212-
_log.error(e);
212+
_log.error(e.getMessage(), e);
213213
continue;
214214
}
215215

0 commit comments

Comments
 (0)