Add output text before and after the json

This commit is contained in:
Kelly Kelly 2022-07-06 14:46:35 -04:00
parent d493065ee7
commit 4fdb5ae5c1

View File

@ -316,10 +316,12 @@ public class CommandLineIngestManager extends CommandLineManager {
case LIST_ALL_INGEST_PROFILES:
List<IngestProfile> profiles = IngestProfiles.getIngestProfiles();
GsonBuilder gb = new GsonBuilder();
System.out.println("Listing ingest profiles");
for(IngestProfile profile: profiles) {
String jsonText = gb.create().toJson(profile);
System.out.println(jsonText);
}
System.out.println("Ingest profile list complete");
break;
default:
break;