OSDN Git Service

不要となっていたプロパティを削除
[kcd/KCD.git] / KCD / JSONViewCommand.swift
index 5c178bc..3248c75 100644 (file)
@@ -22,7 +22,7 @@ final class JSONViewCommand: JSONCommand {
         self.recieveDate = Date()
         self.parameterList = apiResponse
             .parameter
-           .map { ["key": $0, "value": $1] }
+            .map { ["key": $0, "value": $1] }
         self.jsonTree = JSONNode
             .nodeWithJSON(apiResponse.json)
             .map { [$0] }
@@ -49,19 +49,21 @@ final class JSONViewCommand: JSONCommand {
         
         guard let _ = jsonTree else {
             
-            print("jsonTree is nil.")
+            Logger.shared.log("jsonTree is nil.")
+            
             return
         }
         guard let _ = recieveDate else {
             
-            print("recieveDate is nil.")
+            Logger.shared.log("recieveDate is nil.")
+            
             return
         }
         
         DispatchQueue.main.async {
             
             let commands: [String: Any] = [
-                "api": self.api,
+                "api": self.api.debugDescription,
                 "argument": self.parameterList,
                 "json": self.jsonTree ?? [],
                 "recieveDate": self.recieveDate ?? Date(),