diff --git a/Simcoe/RemoteOutput.swift b/Simcoe/RemoteOutput.swift index c577bfc..6391484 100644 --- a/Simcoe/RemoteOutput.swift +++ b/Simcoe/RemoteOutput.swift @@ -14,7 +14,7 @@ internal struct RemoteOutput: Output { /// The token. let token: String - fileprivate let baseUrl = URL(string: "https://panalytics.herokuapp.com/")! + fileprivate let baseUrl = URL(string: "")! fileprivate var url: URL { return URL(string: token, relativeTo: baseUrl)! @@ -26,23 +26,14 @@ internal struct RemoteOutput: Output { init(token: String) { self.token = token - Swift.print ("Simcoe now logging remotely to URL: \(url.absoluteString)") + Swift.print ("DISABLED : Simcoe now logging remotely to URL: \(url.absoluteString)") } /// Prints a message. /// /// - Parameter message: The message. func print(_ message: String) { - var request = URLRequest(url: url) - request.httpMethod = "POST" - request.setValue("application/json", forHTTPHeaderField: "Content-Type") - - let data = try! JSONSerialization.data(withJSONObject: ["analytics": message], options: JSONSerialization.WritingOptions(rawValue: 0)) - request.httpBody = data - - URLSession(configuration: URLSessionConfiguration.default) - .dataTask(with: request) - .resume() + //removing } } diff --git a/Simcoe/Tracker.swift b/Simcoe/Tracker.swift index 3f8b348..c8c36a5 100644 --- a/Simcoe/Tracker.swift +++ b/Simcoe/Tracker.swift @@ -21,7 +21,7 @@ public final class Tracker { /// standard output console. /// /// - Parameter outputSources: The source to use for general output. - init(outputSources: [Output] = [ConsoleOutput(), RemoteOutput(token: Simcoe.session)]) { + init(outputSources: [Output] = [ConsoleOutput()]) { self.outputSources = outputSources }