From fcbc80c05c20a9a9b083284513680751111f50d2 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 28 Dec 2013 16:40:44 -0500 Subject: [PATCH] Suppress log spam from jinput on Windows 8 and higher --- src/com/limelight/input/ControllerListener.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/limelight/input/ControllerListener.java b/src/com/limelight/input/ControllerListener.java index 0f5a6c1..eace68c 100644 --- a/src/com/limelight/input/ControllerListener.java +++ b/src/com/limelight/input/ControllerListener.java @@ -2,6 +2,8 @@ package com.limelight.input; import java.lang.reflect.Constructor; import java.util.LinkedList; +import java.util.logging.Level; +import java.util.logging.Logger; import com.limelight.nvstream.NvConnection; @@ -17,6 +19,9 @@ public class ControllerListener { * @return true if it started a thread, false if the thread is already running. */ public static boolean startUp() { + // Suppress spam from jinput log warnings in DefaultControllerEnvironment + Logger.getLogger(ControllerEnvironment.getDefaultEnvironment().getClass().getName()).setLevel(Level.SEVERE); + if (listenerThread == null || !listenerThread.isAlive()) { System.out.println("Controller Listener thread starting up"); listenerThread = new Thread() {