mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-13 00:57:31 -05:00
Changed to slf4j logging framework
Enhanced error handling/logging in RTL2832 eeprom device descriptor read method for troubleshooting issue present in some R820T tuners.
This commit is contained in:
@@ -22,7 +22,9 @@ import java.util.concurrent.RejectedExecutionException;
|
||||
import javax.swing.JPanel;
|
||||
import javax.usb.UsbException;
|
||||
|
||||
import log.Log;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import sample.Listener;
|
||||
import source.SourceException;
|
||||
import source.tuner.FrequencyChangeListener;
|
||||
@@ -38,6 +40,9 @@ import controller.ThreadPoolManager;
|
||||
|
||||
public class RTL2832Tuner extends Tuner
|
||||
{
|
||||
private final static Logger mLog =
|
||||
LoggerFactory.getLogger( RTL2832Tuner.class );
|
||||
|
||||
private TunerClass mTunerClass;
|
||||
protected RTL2832TunerController mController;
|
||||
|
||||
@@ -98,8 +103,7 @@ public class RTL2832Tuner extends Tuner
|
||||
}
|
||||
catch( SourceException e )
|
||||
{
|
||||
Log.error( "RTL2832 Tuner - couldn't get sample rate - " +
|
||||
e.getLocalizedMessage() );
|
||||
mLog.error( "RTL2832 Tuner - couldn't get sample rate", e );
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user