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

Commit

Permalink
Merge pull request #105 from galasa-dev/logging-improvements
Browse files Browse the repository at this point in the history
improving logging in DeployTestCatalog to view loaded bootstrap properties
  • Loading branch information
Akyiaa authored Feb 26, 2024
2 parents 6e7899d + 5cbddd7 commit 32d6337
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public class DeployTestCatalog extends AbstractMojo {

@Parameter(defaultValue = "${galasa.bootstrap}", readonly = true, required = false)
private URL bootstrapUrl;


@Parameter(defaultValue = "${galasa.skip.bundletestcatatlog}", readonly = true, required = false)
private boolean typoSkip;
Expand Down Expand Up @@ -75,6 +74,7 @@ protected static boolean setCorrectBooleanValue(boolean correctSkip, boolean typ
}

public void execute() throws MojoExecutionException, MojoFailureException {
getLog().info("DeployTestCatalog - execute()");

if (skip || skipDeploy) {
getLog().info("Skipping Deploy Test Catalog");
Expand Down Expand Up @@ -113,7 +113,9 @@ public void execute() throws MojoExecutionException, MojoFailureException {
Properties bootstrapProperties = new Properties();
try {
URLConnection connection = bootstrapUrl.openConnection();
getLog().info("URLConnection: " + connection);
bootstrapProperties.load(connection.getInputStream());
getLog().info("bootstrapProperties loaded: " + bootstrapProperties);
} catch (Exception e) {
throw new MojoExecutionException("Unable to load the bootstrap properties", e);
}
Expand Down

0 comments on commit 32d6337

Please sign in to comment.