From da53a3eaf1e5c06ff6a2506b7b603086293a887e Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 28 Nov 2014 14:46:04 +0000 Subject: [PATCH] JAL-1611 revise log level to reduce verbosity --- src/jalview/bin/Jalview.java | 4 ++-- src/jalview/gui/BlogReader.java | 22 +++++++++++----------- src/jalview/gui/WsParamSetManager.java | 2 +- src/jalview/ws/DasSequenceFeatureFetcher.java | 8 ++++---- src/jalview/ws/jws2/JabaWsServerQuery.java | 2 +- src/jalview/ws/jws2/Jws2Discoverer.java | 2 +- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index f80f341..bca5051 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -658,7 +658,7 @@ public class Jalview public void run() { Cache.log - .info("Initialising googletracker for usage stats."); + .debug("Initialising googletracker for usage stats."); Cache.initGoogleTracker(); Cache.log.debug("Tracking enabled."); } @@ -666,7 +666,7 @@ public class Jalview { public void run() { - Cache.log.info("Not enabling Google Tracking."); + Cache.log.debug("Not enabling Google Tracking."); } }, null, true); desktop.addDialogThread(prompter); diff --git a/src/jalview/gui/BlogReader.java b/src/jalview/gui/BlogReader.java index 7a1065d..0de4adf 100644 --- a/src/jalview/gui/BlogReader.java +++ b/src/jalview/gui/BlogReader.java @@ -198,7 +198,7 @@ public class BlogReader extends JPanel { if (parent != null) { - Cache.log.info("News window closed."); + Cache.log.debug("News window closed."); jd = null; parent.showNews(false); } @@ -246,7 +246,7 @@ public class BlogReader extends JPanel public BlogReader(Desktop desktop) { - Cache.log.info("Constructing news reader."); + Cache.log.debug("Constructing news reader."); parent = desktop; _channelModel = new ChannelListModel(); @@ -275,10 +275,10 @@ public class BlogReader extends JPanel if (setvisible) { - Cache.log.info("Will show jalview news automatically"); + Cache.log.debug("Will show jalview news automatically"); showNews(); } - Cache.log.info("Completed construction of reader."); + Cache.log.debug("Completed construction of reader."); } @@ -334,7 +334,7 @@ public class BlogReader extends JPanel jd.initDialogFrame(me, false, false, MessageManager.getString("label.news_from_jalview"), bounds.width, bounds.height); jd.frame.setModalExclusionType(ModalExclusionType.NO_EXCLUDE); - Cache.log.info("Displaying news."); + Cache.log.debug("Displaying news."); jd.waitForInput(); } } @@ -421,7 +421,7 @@ public class BlogReader extends JPanel { jalview.bin.Cache.setDateProperty("JALVIEW_NEWS_RSS_LASTMODIFIED", lastDate); - jalview.bin.Cache.log.info("Saved last read date as " + jalview.bin.Cache.log.debug("Saved last read date as " + jalview.bin.Cache.date_format.format(lastDate)); } @@ -758,16 +758,16 @@ public class BlogReader extends JPanel + jalview.bin.Cache.date_format.format(lastread.getTime())); if (me.isNewsNew()) { - Cache.log.info("There is news to read."); + Cache.log.debug("There is news to read."); } else { - Cache.log.info("There is no new news."); + Cache.log.debug("There is no new news."); me.xf.setTitle("Testing : Last read is " + me.lastDate); me.showNews(); me.xf.toFront(); } - Cache.log.info("Waiting for closure."); + Cache.log.debug("Waiting for closure."); do { try @@ -781,11 +781,11 @@ public class BlogReader extends JPanel if (me.isNewsNew()) { - Cache.log.info("Still new news after reader displayed."); + Cache.log.debug("Still new news after reader displayed."); } if (lastread.getTime().before(me.lastDate)) { - Cache.log.info("The news was read."); + Cache.log.debug("The news was read."); lastread.setTime(me.lastDate); } else diff --git a/src/jalview/gui/WsParamSetManager.java b/src/jalview/gui/WsParamSetManager.java index 3322d6a..46d93b0 100644 --- a/src/jalview/gui/WsParamSetManager.java +++ b/src/jalview/gui/WsParamSetManager.java @@ -159,7 +159,7 @@ public class WsParamSetManager implements ParamManager { if (filename != null && !((outfile = new File(filename)).canWrite())) { - Cache.log.info("Can't write to " + filename + Cache.log.warn("Can't write to " + filename + " - Prompting for new file to write to."); filename = null; } diff --git a/src/jalview/ws/DasSequenceFeatureFetcher.java b/src/jalview/ws/DasSequenceFeatureFetcher.java index 8a7bcbc..64181ca 100644 --- a/src/jalview/ws/DasSequenceFeatureFetcher.java +++ b/src/jalview/ws/DasSequenceFeatureFetcher.java @@ -496,13 +496,13 @@ public class DasSequenceFeatureFetcher } catch (Exception ex) { Cache.log - .info("Error in 'experimental' mapping of features. Please try to reproduce and then report info to jalview-discuss@jalview.org."); - Cache.log.info("Mapping feature from " + f.getBegin() + .warn("Error in 'experimental' mapping of features. Please try to reproduce and then report info to jalview-discuss@jalview.org."); + Cache.log.warn("Mapping feature from " + f.getBegin() + " to " + f.getEnd() + " in dbref " + dbref.getAccessionId() + " in " + dbref.getSource()); - Cache.log.info("using das Source " + source); - Cache.log.info("Exception", ex); + Cache.log.warn("using das Source " + source); + Cache.log.warn("Exception", ex); } if (vf != null) diff --git a/src/jalview/ws/jws2/JabaWsServerQuery.java b/src/jalview/ws/jws2/JabaWsServerQuery.java index 74dce4d..832a2cb 100644 --- a/src/jalview/ws/jws2/JabaWsServerQuery.java +++ b/src/jalview/ws/jws2/JabaWsServerQuery.java @@ -212,7 +212,7 @@ public class JabaWsServerQuery implements Runnable else { jws2Discoverer.addInvalidServiceUrl(jwsserver); - Cache.log.info("Ignoring invalid Jws2 service url " + jwsserver); + Cache.log.warn("Ignoring invalid Jws2 service url " + jwsserver); } } catch (Exception e) { diff --git a/src/jalview/ws/jws2/Jws2Discoverer.java b/src/jalview/ws/jws2/Jws2Discoverer.java index a111d68..7a8eee9 100644 --- a/src/jalview/ws/jws2/Jws2Discoverer.java +++ b/src/jalview/ws/jws2/Jws2Discoverer.java @@ -705,7 +705,7 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI } else { - Cache.log.info("Ignoring duplicate url " + url + " in " + Cache.log.warn("Ignoring duplicate url " + url + " in " + JWS2HOSTURLS + " list"); } } catch (MalformedURLException ex) -- 1.7.10.2