     
     // Log this cloud boost object
     public func log() {
-        print("-- CLoud Object --")
-        print(document)
+        
+        if CloudApp.isLogging() {
+            print("-- CLoud Object --")
+            print(document)
+        }
     }
     
     

        return object
    }
    
}
            }
        }
        CloudSocket.getSocket().on("connect", callback: { data, ack in
            if CloudApp.isLogging() {
                print("sessionID: \(CloudSocket.getSocket().sid)")
            }
            for (index,_) in payloads.enumerate() {
                payloads[index]["sessionId"] = CloudSocket.getSocket().sid
                CloudSocket.getSocket().emit("join-object-channel", payloads[index])
