Skip to content

Commit

Permalink
Add comments and more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jordeu committed Dec 15, 2021
1 parent 58b3014 commit bf3822f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/io/seqera/tower/agent/Agent.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ private void sendInfoMessage() throws IOException {
));
}

/**
* Validate and set default values of all Agent configurable parameters
*
* @throws IOException
*/
private void validateParameters() throws IOException {
// Fetch username
validatedUserName = System.getProperty("user.name");
Expand All @@ -205,6 +210,7 @@ private void validateParameters() throws IOException {

// Set default workDir
if (workDir == null) {
logger.debug("No work directory provided. Using default ~/work.");
String defaultPath = System.getProperty("user.home") + "/work";
try {
workDir = Paths.get(defaultPath);
Expand Down

0 comments on commit bf3822f

Please sign in to comment.