Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Remove logging from offline builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanKanojia committed Oct 14, 2019
1 parent a476814 commit f75d09b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ After this we will switch probably to real [Semantic Versioning 2.0.0](http://se
* Fix #1710: Docker build args not working
* Fix #1728: Ingress enricher is using Ingress kind
* Fix #1732: Correctly replacing template placeholders in helm chart
* Fix #1734: Add logging during jib builds

### 4.3.0 (04-10-2019)
* Updated custom-enricher sample
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,7 @@ public static JibContainer buildContainer(JibContainerBuilder jibContainerBuilde
if (offline) {
logger.info("Trying to build the image tarball in the offline mode.");
}
return jibContainerBuilder.containerize(Containerizer.to(image).setOfflineMode(offline)
.addEventHandler(LogEvent.class, JibBuildServiceUtil::log)
.addEventHandler(
TimerEvent.class,
new TimerEventHandler(message -> consoleLogger.log(LogEvent.Level.DEBUG, message)))
.addEventHandler(
ProgressEvent.class,
new ProgressEventHandler(
update ->
consoleLogger.setFooter(
ProgressDisplayGenerator.generateProgressDisplay(
update.getProgress(), update.getUnfinishedLeafTasks())))));
return jibContainerBuilder.containerize(Containerizer.to(image).setOfflineMode(offline));
} catch (CacheDirectoryCreationException | IOException | InterruptedException | ExecutionException | RegistryException ex) {
logger.error("Unable to build the image tarball: %s", ex.getMessage());
throw new IllegalStateException(ex);
Expand Down

0 comments on commit f75d09b

Please sign in to comment.