@@ -89,6 +89,8 @@ private void updateBool(JSONObject config, ConfigKey.JsonKey jsonKey) {
8989 Boolean value = config .getBoolean (jsonKey .getKey ());
9090 conf .setValue (value );
9191 }
92+ }catch (JSONException jsonException ){
93+ DongTaiLog .trace ("configuration file resolution error {}" ,jsonException .getMessage ());
9294 } catch (Throwable e ) {
9395 DongTaiLog .warn (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,e .getMessage ());
9496 }
@@ -102,6 +104,9 @@ private void updateInt(JSONObject config, ConfigKey.JsonKey jsonKey) {
102104 Integer value = config .getInt (jsonKey .getKey ());
103105 conf .setValue (value );
104106 }
107+ }catch (JSONException jsonException ){
108+ DongTaiLog .trace ("configuration file resolution error {}" ,jsonException .getMessage ());
109+
105110 } catch (Throwable e ) {
106111 DongTaiLog .warn (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,e .getMessage ());
107112 }
@@ -117,6 +122,8 @@ private void updateString(JSONObject config, ConfigKey.JsonKey jsonKey) {
117122 conf .setValue (value );
118123 }
119124 }
125+ }catch (JSONException jsonException ){
126+ DongTaiLog .trace ("configuration file resolution error {}" ,jsonException .getMessage ());
120127 } catch (Throwable e ) {
121128 DongTaiLog .warn (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,e .getMessage ());
122129 }
@@ -132,6 +139,8 @@ private void updateRequestDenyList(JSONObject config) {
132139 RequestDenyList requestDenyList = RequestDenyList .parse (value );
133140 conf .setValue (requestDenyList );
134141 }
142+ }catch (JSONException jsonException ){
143+ DongTaiLog .trace ("updateRequestDenyList configuration file resolution error {}" ,jsonException .getMessage ());
135144 } catch (Throwable e ) {
136145 DongTaiLog .warn (ErrorCode .UTIL_CONFIG_LOAD_FAILED ,e .getMessage ());
137146 }
0 commit comments