Logging cleanup

This commit is contained in:
denny
2016-01-15 09:50:10 -05:00
parent 5807bb191e
commit 663378ad20
4 changed files with 27 additions and 45 deletions

View File

@@ -431,8 +431,7 @@ public class SettingsManager
}
/* Something happened ... the above should always return an icon */
mLog.error( "SettingsManager - couldn't return an icon named [" +
name + "] of heigh [" + height + "]" );
mLog.error( "couldn't return an icon named [" + name + "] of heigh [" + height + "]" );
}
return null;
@@ -630,8 +629,7 @@ public class SettingsManager
return r820TConfig;
default:
throw new IllegalArgumentException( "TunerConfiguration"
+ "Directory - tuner type is unrecognized [" +
throw new IllegalArgumentException( "tuner type is unrecognized [" +
type.toString() + "]" );
}
}
@@ -705,8 +703,7 @@ public class SettingsManager
}
catch( Exception e )
{
mLog.error( "SettingsManager - couldn't create file to save "
+ "settings [" + filePath.toString() + "]", e );
mLog.error( "couldn't create file to save settings [" + filePath.toString() + "]", e );
}
OutputStream out = null;
@@ -727,14 +724,12 @@ public class SettingsManager
}
catch ( JAXBException e )
{
mLog.error( "SettingsManager - jaxb exception while saving " +
"settings", e );
mLog.error( "jaxb exception while saving settings", e );
}
}
catch ( Exception e )
{
mLog.error( "SettingsManager - coulcn't open outputstream to " +
"save settings [" + filePath.toString() + "]" );
mLog.error( "couldn't open outputstream to save settings [" + filePath.toString() + "]" );
}
finally
{
@@ -760,8 +755,7 @@ public class SettingsManager
{
if( Files.exists( settingsPath ) )
{
mLog.info( "SettingsManager - loading settings file [" +
settingsPath.toString() + "]" );
mLog.info( "loading settings file [" + settingsPath.toString() + "]" );
JAXBContext context = null;
@@ -781,13 +775,13 @@ public class SettingsManager
}
catch ( JAXBException e )
{
mLog.error( "SettingsManager - jaxb exception while loading " +
mLog.error( "jaxb exception while loading " +
"settings", e );
}
}
catch ( Exception e )
{
mLog.error( "SettingsManager - coulcn't open inputstream to " +
mLog.error( "coulcn't open inputstream to " +
"load settings [" + settingsPath.toString() + "]", e );
}
finally
@@ -800,7 +794,7 @@ public class SettingsManager
}
catch ( IOException e )
{
mLog.error( "SettingsManager - exception while closing " +
mLog.error( "exception while closing " +
"the settings file inputstream reader", e );
}
}
@@ -808,8 +802,7 @@ public class SettingsManager
}
else
{
mLog.info( "SettingsManager - settings does not exist [" +
settingsPath.toString() + "]" );
mLog.info( "settings does not exist [" + settingsPath.toString() + "]" );
}
if( mSettings == null )