Skip to content

Commit e51d5e4

Browse files
committed
logRecognizedIntent does not generate exceptions
Instead we just log the error as most times this error is not really an error but a wrong matching by the nlp engine
1 parent 294d7b1 commit e51d5e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/xatkit/core/recognition/RecognitionMonitorPostgreSQL.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ public void logRecognizedIntent(StateContext context, RecognizedIntent intent) {
178178
st.executeUpdate();
179179
st.close();
180180
} catch (Exception e) {
181-
throw new RuntimeException("Error when registering PostgreSQL monitoring data, see the "
182-
+ "attached exception", e);
181+
Log.debug("Error when registering PostgreSQL monitoring data, see {0}", e.getMessage());
183182
}
184183
}
185184

0 commit comments

Comments
 (0)