From b70be329bfcc66ac3ddc1eba2453b80ee6b20224 Mon Sep 17 00:00:00 2001 From: Lawrence Lomax Date: Thu, 17 Mar 2016 05:52:08 -0700 Subject: [PATCH] Disambiguate logs/diagnostics Summary: Logs aren't diagnostics Reviewed By: marekcirkos Differential Revision: D3059207 fb-gh-sync-id: cb4711bb8cfc2e11d4def51e1018a98dc78ca92d shipit-source-id: cb4711bb8cfc2e11d4def51e1018a98dc78ca92d --- fbsimctl/FBSimulatorControlKit/Sources/Events.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fbsimctl/FBSimulatorControlKit/Sources/Events.swift b/fbsimctl/FBSimulatorControlKit/Sources/Events.swift index 15ed0472..eaab1ebd 100644 --- a/fbsimctl/FBSimulatorControlKit/Sources/Events.swift +++ b/fbsimctl/FBSimulatorControlKit/Sources/Events.swift @@ -26,6 +26,7 @@ public enum EventName : String { case Launch = "launch" case List = "list" case Listen = "listen" + case Log = "log" case Query = "query" case Record = "record" case Relaunch = "relaunch" @@ -110,7 +111,7 @@ class SimpleEvent : NSObject, JSONDescribeable { public var jsonDescription: JSON { get { return JSON.JDictionary([ - "event_name" : JSON.JString(EventName.Diagnostic.rawValue), + "event_name" : JSON.JString(EventName.Log.rawValue), "event_type" : JSON.JString(EventType.Discrete.rawValue), "subject" : JSON.JString(self.logString), "level" : JSON.JString(self.levelString),