Skip to content

Commit

Permalink
Make ContextAccessProvider less spammy. Closes #833
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed Jul 3, 2013
1 parent 7b09113 commit 952b973
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,6 +1,7 @@
package nallar.tickthreading.util.contextaccess;

import nallar.tickthreading.Log;
import nallar.tickthreading.util.EnvironmentInfo;

class ContextAccessProvider {
private static final Class[] contextAccessClasses = {
Expand All @@ -26,7 +27,7 @@ static ContextAccess getContextAccess() {
}
return contextAccess;
} catch (Throwable t) {
Log.warning("Unable to set up context access class " + clazz, t);
Log.warning("Unable to set up context access class " + clazz + ". " + t.getMessage() + ", falling back to slower context access. On JRE: " + EnvironmentInfo.getJavaVersion());
}
}
throw new Error("Failed to set up any context access");
Expand Down

0 comments on commit 952b973

Please sign in to comment.