Skip to content

Commit 9a3e471

Browse files
authored
update logging (#2286)
1 parent 5ca34bd commit 9a3e471

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/tdsparser.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,12 @@ boolean onOrder(TDSReader tdsReader) throws SQLServerException {
280280

281281
boolean onColMetaData(TDSReader tdsReader) throws SQLServerException {
282282
/*
283-
* SHOWPLAN or something else that produces extra metadata might be ON. instead of throwing an exception, warn
284-
* and discard the column meta data
283+
* SHOWPLAN or something else that produces extra metadata might be ON. Log info instead of throwing an exception, warn
284+
* and discard the extra column meta data
285285
*/
286-
if (logger.isLoggable(Level.WARNING))
287-
logger.warning(tdsReader.toString() + ": " + logContext + ": Discarding unexpected "
286+
if (logger.isLoggable(Level.INFO))
287+
logger.info(tdsReader.toString() + ": " + logContext
288+
+ ": Discarding extra metadata which can be a result of SHOWPLAN settings: "
288289
+ TDS.getTokenName(tdsReader.peekTokenType()));
289290
(new StreamColumns(false)).setFromTDS(tdsReader);
290291
return false;

0 commit comments

Comments
 (0)