Skip to content

Commit 4886021

Browse files
committed
Make JAVACL_LOG_CALLS logs warnings to force them out
1 parent c12410a commit 4886021

File tree

1 file changed

+2
-2
lines changed
  • Core/src/main/velocity/com/nativelibs4java/opencl

1 file changed

+2
-2
lines changed

Core/src/main/velocity/com/nativelibs4java/opencl/JavaCL.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ else if (Platform.isMacOSX())
219219
private static IOpenCLLibrary wrapWithLogs(final IOpenCLLibrary cl) {
220220
return (IOpenCLLibrary) Proxy.newProxyInstance(JavaCL.class.getClassLoader(), new Class[] { IOpenCLLibrary.class }, new InvocationHandler() {
221221
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
222-
log(Level.INFO, method.getName() + "(" + StringUtils.implode(args, ", ") + ")");
222+
log(Level.WARNING, method.getName() + "(" + StringUtils.implode(args, ", ") + ")");
223223
Object ret = method.invoke(cl, args);
224-
log(Level.INFO, "\t" + method.getName() + " -> " + ret);
224+
log(Level.WARNING, "\t" + method.getName() + " -> " + ret);
225225
return ret;
226226
}
227227
});

0 commit comments

Comments
 (0)