public void logFirstSelectQueryForCurrentThread ( ) { String firstSelectQuery = getSelectQueriesForCurrentThread ( ) . stream ( ) . findFirst ( ) . map ( CircularQueueCaptureQueriesListener :: formatQueryAsSql ) . orElse ( "NONE FOUND" ) ; ourLog . info ( "First select Query:\n{}" , firstSelectQuery ) ; }
Log first captured SELECT query