diff --git a/sec-beidou-rtcm/src/main/java/com/imdroid/sideslope/rtkcluster/RtkClusterService.java b/sec-beidou-rtcm/src/main/java/com/imdroid/sideslope/rtkcluster/RtkClusterService.java index afcd96dc..6e4b833d 100644 --- a/sec-beidou-rtcm/src/main/java/com/imdroid/sideslope/rtkcluster/RtkClusterService.java +++ b/sec-beidou-rtcm/src/main/java/com/imdroid/sideslope/rtkcluster/RtkClusterService.java @@ -216,13 +216,13 @@ public class RtkClusterService implements ApplicationRunner { // OUT connection (NMEA etc.) closeQuietly(outConn); outConn = s; - LOGGER.info("Endpoint {} OUT connected", port); + LOGGER.debug("Endpoint {} OUT connected", port); pumpOut(outConn, probe, n); } else { // IN connection (RTCM sink) closeQuietly(inConn); inConn = s; - LOGGER.info("Endpoint {} IN connected", port); + LOGGER.debug("Endpoint {} IN connected", port); } } catch (IOException e) { LOGGER.warn("classifyConnection error: {}", e.getMessage()); @@ -247,16 +247,16 @@ public class RtkClusterService implements ApplicationRunner { int read; // deliver first classified bytes if any if (firstLen > 0) { - String preview = new String(firstBuf, 0, Math.min(firstLen, 64), StandardCharsets.US_ASCII).replaceAll("\n", "\\n"); - LOGGER.info("[OUT:{}] {} bytes: {}...", port, firstLen, preview); + String preview = new String(firstBuf, 0, firstLen, StandardCharsets.US_ASCII).replaceAll("\n", "\\n"); + LOGGER.info("[OUT:{}] {}", port, preview); } while ((read = in.read(buf)) != -1) { // For now, just log a short preview - String preview = new String(buf, 0, Math.min(read, 64), StandardCharsets.US_ASCII).replaceAll("\n", "\\n"); - LOGGER.info("[OUT:{}] {} bytes: {}...", port, read, preview); + String preview = new String(buf, 0, read, StandardCharsets.US_ASCII).replaceAll("\n", "\\n"); + LOGGER.info("[OUT:{}] {}", port, preview); } } catch (IOException e) { - LOGGER.info("OUT connection closed on {}: {}", port, e.getMessage()); + LOGGER.debug("OUT connection closed on {}: {}", port, e.getMessage()); } finally { if (outConn == s) outConn = null; closeQuietly(s);