|
15 | 15 | */
|
16 | 16 | package com.diffplug.spotless.npm;
|
17 | 17 |
|
18 |
| -import static com.diffplug.spotless.LazyArgLogger.lazy; |
19 | 18 | import static java.util.Objects.requireNonNull;
|
20 | 19 |
|
21 | 20 | import java.io.File;
|
@@ -116,7 +115,7 @@ protected void prepareNodeServerLayout() throws IOException {
|
116 | 115 | // If any config files are provided, we need to make sure they are at the same location as the node modules
|
117 | 116 | // as eslint will try to resolve plugin/config names relatively to the config file location and some
|
118 | 117 | // eslint configs contain relative paths to additional config files (such as tsconfig.json e.g.)
|
119 |
| - logger.info("Copying config file <{}> to <{}> and using the copy", origEslintConfig.getEslintConfigPath(), nodeServerLayout.nodeModulesDir()); |
| 118 | + logger.debug("Copying config file <{}> to <{}> and using the copy", origEslintConfig.getEslintConfigPath(), nodeServerLayout.nodeModulesDir()); |
120 | 119 | File configFileCopy = NpmResourceHelper.copyFileToDir(origEslintConfig.getEslintConfigPath(), nodeServerLayout.nodeModulesDir());
|
121 | 120 | this.eslintConfigInUse = this.origEslintConfig.withEslintConfigPath(configFileCopy).verify();
|
122 | 121 | }
|
@@ -162,8 +161,6 @@ public EslintFilePathPassingFormatterFunc(File projectDir, File nodeModulesDir,
|
162 | 161 |
|
163 | 162 | @Override
|
164 | 163 | public String applyWithFile(String unix, File file) throws Exception {
|
165 |
| - logger.info("formatting String '{}[...]' in file '{}'", lazy(() -> unix.substring(0, Math.min(50, unix.length()))), file); |
166 |
| - |
167 | 164 | Map<FormatOption, Object> eslintCallOptions = new HashMap<>();
|
168 | 165 | setConfigToCallOptions(eslintCallOptions);
|
169 | 166 | setFilePathToCallOptions(eslintCallOptions, file);
|
|
0 commit comments