MCPcopy Create free account
hub / github.com/apache/storm / readAndLogStream

Method readAndLogStream

storm-client/src/jvm/org/apache/storm/utils/Utils.java:881–891  ·  view source on GitHub ↗
(String prefix, InputStream in)

Source from the content-addressed store, hash-verified

879 }
880
881 public static void readAndLogStream(String prefix, InputStream in) {
882 try {
883 BufferedReader r = new BufferedReader(new InputStreamReader(in));
884 String line = null;
885 while ((line = r.readLine()) != null) {
886 LOG.info("{}:{}", prefix, line);
887 }
888 } catch (IOException e) {
889 LOG.warn("Error while trying to log stream", e);
890 }
891 }
892
893 /**
894 * Creates an instance of the pluggable SerializationDelegate or falls back to DefaultSerializationDelegate if something goes wrong.

Callers 2

callMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected