Skip to content

Commit

Permalink
Rephrase connection warnings and exclude stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
vogti committed Dec 6, 2023
1 parent 120d80b commit df06448
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
}
}
Expand All @@ -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;
}
}
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit df06448

Please sign in to comment.