Skip to content

Commit

Permalink
Merge pull request #834 from Green-Software-Foundation/fix-diff-log
Browse files Browse the repository at this point in the history
Fix printing unnecessary log while running if-diff
  • Loading branch information
narekhovhannisyan authored Jun 13, 2024
2 parents 2fd2d62 + 0c4de59 commit 3e3ec07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ import {validateManifest} from './util/validations';

import {CONFIG} from './config';
import {logger} from './util/logger';
import {debugLogger} from './util/debug-logger';

const {IF_DIFF} = CONFIG;
const {SUCCESS_MESSAGE, FAILURE_MESSAGE} = IF_DIFF;

const IfDiff = async () => {
const {sourcePath, targetPath} = parseIfDiffArgs();

// Call this function with false parameter to prevent log debug messages.
debugLogger.overrideConsoleMethods(false);

const {rawSourceManifest, rawTargetManifest} = await loadIfDiffFiles({
targetPath,
sourcePath,
Expand Down

0 comments on commit 3e3ec07

Please sign in to comment.