@@ -75,8 +75,8 @@ public void update(JSONObject config) {
7575 public <T > T get (ConfigKey key ) {
7676 try {
7777 return ((Config <T >) getConfig (key )).get ();
78- } catch (Throwable ignore ) {
79- DongTaiLog .error (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,ignore .getMessage ());
78+ } catch (Throwable e ) {
79+ DongTaiLog .error (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,e .getMessage ());
8080 return null ;
8181 }
8282 }
@@ -89,8 +89,8 @@ private void updateBool(JSONObject config, ConfigKey.JsonKey jsonKey) {
8989 Boolean value = config .getBoolean (jsonKey .getKey ());
9090 conf .setValue (value );
9191 }
92- } catch (Throwable ignore ) {
93- DongTaiLog .error (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,ignore .getMessage ());
92+ } catch (Throwable e ) {
93+ DongTaiLog .error (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,e .getMessage ());
9494 }
9595 }
9696
@@ -102,8 +102,8 @@ private void updateInt(JSONObject config, ConfigKey.JsonKey jsonKey) {
102102 Integer value = config .getInt (jsonKey .getKey ());
103103 conf .setValue (value );
104104 }
105- } catch (Throwable ignore ) {
106- DongTaiLog .error (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,ignore .getMessage ());
105+ } catch (Throwable e ) {
106+ DongTaiLog .error (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,e .getMessage ());
107107 }
108108 }
109109
@@ -117,8 +117,8 @@ private void updateString(JSONObject config, ConfigKey.JsonKey jsonKey) {
117117 conf .setValue (value );
118118 }
119119 }
120- } catch (Throwable ignore ) {
121- DongTaiLog .error (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,ignore .getMessage ());
120+ } catch (Throwable e ) {
121+ DongTaiLog .error (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,e .getMessage ());
122122 }
123123 }
124124
@@ -132,8 +132,8 @@ private void updateRequestDenyList(JSONObject config) {
132132 RequestDenyList requestDenyList = RequestDenyList .parse (value );
133133 conf .setValue (requestDenyList );
134134 }
135- } catch (Throwable ignore ) {
136- DongTaiLog .error (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,ignore .getMessage ());
135+ } catch (Throwable e ) {
136+ DongTaiLog .error (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,e .getMessage ());
137137 }
138138 }
139139}
0 commit comments