Skip to content

Commit

Permalink
Fix logger line not printing.
Browse files Browse the repository at this point in the history
Add version logging
  • Loading branch information
BenBaryoPX committed Jan 14, 2024
1 parent 106fd59 commit 3ccb46c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/restringer.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,12 @@ if (require.main === module) {
const fs = require('node:fs');
let content = fs.readFileSync(args.inputFilename, 'utf-8');
const startTime = Date.now();
logger.log(`[!] Deobfuscating ${args.inputFilename}...\n`);

const restringer = new REstringer(content);
if (args.quiet) restringer.logger.setLogLevel(logger.logLevels.NONE);
else if (args.verbose) restringer.logger.setLogLevel(logger.logLevels.DEBUG);
logger.log(`[!] REstringer v${REstringer.__version__}`);
logger.log(`[!] Deobfuscating ${args.inputFilename}...`);
if (args.maxIterations) {
setGlobalMaxIterations(args.maxIterations);
restringer.logger.log(`[!] Running at most ${args.maxIterations} iterations`);
Expand Down

0 comments on commit 3ccb46c

Please sign in to comment.