(String prefix, InputStream in)
| 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. |
no outgoing calls
no test coverage detected