From df06448404cbafaa6766dc9eb6c9a5f866069bf6 Mon Sep 17 00:00:00 2001 From: Marco Vogt Date: Wed, 6 Dec 2023 10:23:17 +0100 Subject: [PATCH] Rephrase connection warnings and exclude stacktrace --- .../unibas/dmi/dbis/chronos/agent/ChronosHttpClient.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/ch/unibas/dmi/dbis/chronos/agent/ChronosHttpClient.java b/src/main/java/ch/unibas/dmi/dbis/chronos/agent/ChronosHttpClient.java index 44c20a9..4b069b9 100644 --- a/src/main/java/ch/unibas/dmi/dbis/chronos/agent/ChronosHttpClient.java +++ b/src/main/java/ch/unibas/dmi/dbis/chronos/agent/ChronosHttpClient.java @@ -1,7 +1,7 @@ /* The MIT License (MIT) -Copyright (c) 2018-2022 The Chronos Project +Copyright (c) 2018-2023 The Chronos Project Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -316,7 +316,7 @@ public boolean setStatus( final ChronosJob job, final JobStatus newStatus ) { return status.getInt( ChronosRestApi.STATUS_CODE_KEY ) == ChronosRestApi.STATUS_CODE__SUCCESS; } catch ( UnirestException ex ) { - log.warn( "Exception while setting a status. This attempt will not be repeated by the library.", ex ); + log.warn( "Unable to send status update to Chronos Control. This attempt will not be repeated by the library." ); return false; } } @@ -338,7 +338,7 @@ public boolean setCurrentJobPhase( final ChronosJob job, final JobPhase newJobPh return status.getInt( ChronosRestApi.STATUS_CODE_KEY ) == ChronosRestApi.STATUS_CODE__SUCCESS; } catch ( UnirestException ex ) { - log.warn( "Exception while setting a job phase. This attempt will not be repeated by the library.", ex ); + log.warn( "Unable to report change of job phase to Chronos Control. This attempt will not be repeated by the library." ); return false; } } @@ -371,7 +371,7 @@ public boolean setProgress( final int jobId, byte progress ) { return status.getInt( ChronosRestApi.STATUS_CODE_KEY ) == ChronosRestApi.STATUS_CODE__SUCCESS; } catch ( UnirestException ex ) { - log.warn( "Exception while setting progress. This attempt will not be repeated by the library.", ex ); + log.warn( "Unable to send progress update to Chronos Control. This attempt will not be repeated by the library." ); return false; } }