diff --git a/build.gradle b/build.gradle index 7d27455..7149342 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } group 'fr.mary.olivier' -version '2.0.7' +version '2.0.8' repositories { mavenCentral() @@ -83,6 +83,8 @@ intellij { } patchPluginXml { setChangeNotes """ + 2.0.8
+ - Fix logs errors instead of warn
2.0.7
- OkHttp3 upgrade
2.0.6
diff --git a/src/main/java/fr/mary/olivier/aw/watcher/ReportActivity.java b/src/main/java/fr/mary/olivier/aw/watcher/ReportActivity.java index 3493458..249d2f0 100755 --- a/src/main/java/fr/mary/olivier/aw/watcher/ReportActivity.java +++ b/src/main/java/fr/mary/olivier/aw/watcher/ReportActivity.java @@ -121,7 +121,7 @@ public static void sendHeartBeat(VirtualFile file, Project project) { API_CLIENT.postHeartbeatResourceAsync(bucket.getId(), event, "" + HEARTBEAT_PULSETIME, new ApiCallback<>() { @Override public void onFailure(ApiException e, int statusCode, Map> responseHeaders) { - LOG.error("Unable to send heartbeat", e); + LOG.warn("Unable to send heartbeat:", e); ReportActivity.connexionLost(); } @@ -141,7 +141,7 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) } }); } catch (Exception e) { - LOG.error("Unable to send heartbeat", e); + LOG.warn("Unable to send heartbeat:", e); ReportActivity.connexionLost(); } } @@ -153,7 +153,7 @@ private static void initBucket() { try { hostname = InetAddress.getLocalHost().getHostName(); } catch (Exception exp) { - LOG.error("Unable to get hostname", exp); + LOG.warn("Unable to get hostname:", exp); hostname = "unknown"; } @@ -192,7 +192,7 @@ public void onSuccess(Bucket result, int statusCode, Map> r @Override public void onFailure(ApiException e, int statusCode, Map> responseHeaders) { - LOG.error("Unable to init bucket", e); + LOG.warn("Unable to init bucket:", e); connexionLost = true; } @@ -208,13 +208,13 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) } }); } catch (ApiException ex) { - LOG.error("Unable to init bucket", ex); + LOG.warn("Unable to init bucket:", ex); } } @Override public void onFailure(ApiException e, int statusCode, Map> responseHeaders) { - LOG.error("Unable to create bucket", e); + LOG.warn("Unable to create bucket:", e); initialCheckDone = true; } @@ -231,7 +231,7 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) ); } catch (Exception expB) { - LOG.error("Unable to create bucket", expB); + LOG.warn("Unable to create bucket:", expB); initialCheckDone = true; } } @@ -248,7 +248,7 @@ public void onDownloadProgress(long bytesRead, long contentLength, boolean done) } }); } catch (Exception exp) { - LOG.error("Unable to init bucket", exp); + LOG.warn("Unable to init bucket:", exp); connexionLost = true; } } @@ -282,12 +282,12 @@ public void dispose() { try { connection.disconnect(); } catch (Exception e) { - LOG.error("Unable to disconnect to message bus", e); + LOG.warn("Unable to disconnect to message bus:", e); } try { scheduledConnexion.cancel(true); } catch (Exception e) { - LOG.error("Unable to cancel schedulers", e); + LOG.warn("Unable to cancel schedulers:", e); } } diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 04aa586..55fe9ab 100755 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -2,7 +2,7 @@ fr.mary.olivier.aw-watcher Activity Watcher OlivierMARY - 2.0.7 + 2.0.8