Skip to content

Commit

Permalink
build: show logs only in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Oct 21, 2024
1 parent 2277128 commit 9db7497
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/nx-maven/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ function getProjectRootFromTree(
projectRoot = readProjectConfiguration(tree, projectName).root;
return projectRoot;
} catch (err) {
logger.warn(err);
const isVerbose = process.env['NX_VERBOSE_LOGGING'] === 'true';
if (isVerbose) {
logger.warn(err);
}

const mavenRootDirAbsolutePath = path.join(
workspaceRoot,
Expand Down

0 comments on commit 9db7497

Please sign in to comment.