         let eventType = eventType.lowercaseString
         if CloudApp.SESSION_ID == nil {
             callback(error: "Invalid session ID")
-        }else{
+        }else if CloudApp.isLogging() {
             print("Using session ID: \(CloudApp.SESSION_ID)")
         }
         if eventType == "created" || eventType == "deleted" || eventType == "updated" {

            callback(resp)
            return
        }
        print("id : \(id)")
        let query = CloudQuery(tableName: self.get("_tableName")as!String)
        
        query.findById(id, callback: { resp in
            
            if let obj = resp.object?.firstObject as? CloudObject {
                self.document = obj.document
                print("Object updated")
            }
            callback(resp)
        })

                }
            })
            CloudSocket.getSocket().on("connect", callback: { data, ack in
                if CloudApp.isLogging() {
                    print("sessionID: \(CloudSocket.getSocket().sid)")
                }
                payload["sessionId"] = CloudSocket.getSocket().sid
                CloudSocket.getSocket().emit("join-object-channel", payload)
                callback(error: nil)
            })
            CloudSocket.getSocket().connect(timeoutAfter: 15, withTimeoutHandler: {
                if CloudApp.isLogging() {
                    print("Timeout")
                }
                callback(error: "Timed out")
            })
            
