Skip to content

Commit 2ef5eee

Browse files
committed
fix build for logger scope
1 parent c869426 commit 2ef5eee

File tree

1 file changed

+4
-4
lines changed
  • plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac

1 file changed

+4
-4
lines changed

plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,8 @@ protected CompilerResult compileOutOfProcess(CompilerConfiguration config, Strin
545545
try {
546546
returnCode = CommandLineUtils.executeCommandLine(cli, out, out);
547547

548-
if (log.isDebugEnabled()) {
549-
log.debug("Compiler output:{}{}", EOL, out.getOutput());
548+
if (getLog().isDebugEnabled()) {
549+
getLog().debug("Compiler output:{}{}", EOL, out.getOutput());
550550
}
551551

552552
messages = parseModernStream(returnCode, new BufferedReader(new StringReader(out.getOutput())));
@@ -603,8 +603,8 @@ private CompilerResult compileInProcess0(Class<?> javacClass, String[] args) thr
603603

604604
ok = (Integer) compile.invoke(null, new Object[] {args, new PrintWriter(out)});
605605

606-
if (log.isDebugEnabled()) {
607-
log.debug("Compiler output:{}{}", EOL, out.toString());
606+
if (getLog().isDebugEnabled()) {
607+
getLog().debug("Compiler output:{}{}", EOL, out.toString());
608608
}
609609

610610
messages = parseModernStream(ok, new BufferedReader(new StringReader(out.toString())));

0 commit comments

Comments
 (0)