Skip to content

Commit

Permalink
Add temporary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabarov committed Aug 5, 2021
1 parent 4005db3 commit 4a497d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ File getNpmCacheDir() throws IllegalStateException {
npmCacheCommand.add("get");
npmCacheCommand.add("cache");
npmCacheCommand.add("--global");
getLogger().info("Commands = " + npmCacheCommand);
String output = FrontendUtils.executeCommand(npmCacheCommand);
getLogger().info("Command execution output: " + output);
output = parseCommandOutput(output);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import org.slf4j.LoggerFactory;

import com.vaadin.flow.server.Constants;
import com.vaadin.flow.server.ExecutionFailedException;
Expand Down Expand Up @@ -617,6 +618,8 @@ public void runPnpmInstall_checkNpmAcceptsWhitespaces_throwsOnWindows()

// given
File npmCacheFolder = temporaryFolder.newFolder("Foo Bar");
LoggerFactory.getLogger(TaskRunPnpmInstallTest.class).info(
"Npm cache folder = " + npmCacheFolder.getAbsolutePath());
FrontendStubs.ToolStubInfo nodeStub = FrontendStubs.ToolStubInfo.none();
FrontendStubs.ToolStubInfo npmStub = FrontendStubs.ToolStubInfo
.builder(FrontendStubs.Tool.NPM).withVersion("6.0.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.Objects;

import org.apache.commons.io.FileUtils;
import org.slf4j.LoggerFactory;

/**
* Utility class for stubbing Node.JS and Webpack scripts.
Expand Down Expand Up @@ -348,6 +349,8 @@ private String generateNpmScript(StringBuilder scriptBuilder) {
.append(cacheDir).append("');\n");
}
script = scriptBuilder.toString();

LoggerFactory.getLogger(FrontendStubs.class).info("Script = " + script);
return script;
}
}
Expand Down

0 comments on commit 4a497d3

Please sign in to comment.