Skip to content

Commit

Permalink
πŸ”Š : add error log
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit committed Nov 12, 2020
1 parent 27f35db commit d360e87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/io/gaia_app/runner/RunnerCommandBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import io.gaia_app.stacks.bo.Stack;
import io.gaia_app.stacks.bo.mustache.TerraformScript;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

Expand All @@ -22,6 +24,8 @@
@Component
public class RunnerCommandBuilder {

private static final Logger logger = LoggerFactory.getLogger(RunnerCommandBuilder.class);

private Settings settings;
private RunnerApiSecurityConfig.RunnerApiSecurityProperties runnerApiSecurityProperties;
private Mustache terraformMustache;
Expand Down Expand Up @@ -71,7 +75,7 @@ private String buildScript(Job job, Stack stack, TerraformModule module, String
terraformMustache.execute(writer, script).flush();
return writer.toString();
} catch (IOException e) {
e.printStackTrace();
logger.error("Unable to generate script : {}", e.getMessage());
}
return StringUtils.EMPTY;
}
Expand Down

0 comments on commit d360e87

Please sign in to comment.