From 10f5c9edb5f7e3ec96b441f82585e55d33530ec7 Mon Sep 17 00:00:00 2001 From: Arthur Ariel Sabintsev Date: Fri, 6 Nov 2015 00:42:19 -0500 Subject: [PATCH] Improved logging --- Zephyr.swift | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Zephyr.swift b/Zephyr.swift index ebb89e0..25bb2d8 100644 --- a/Zephyr.swift +++ b/Zephyr.swift @@ -401,9 +401,9 @@ private extension Zephyr { /** - Prints the key, value, and destination of the synchronized information + Prints the key, value, and destination of the synchronized information if - debugEnabled == true + debugEnabled == true - parameter key: The key being synchronized. - parameter value: The value being synchronized. @@ -424,6 +424,16 @@ private extension Zephyr { } } + /** + + Prints the subscription state for a specific key if + + debugEnabled == true + + - parameter key: The key being synchronized. + - parameter subscribed: The subscription status of the key. + + */ static func printObservationStatus(key: String, subscribed: Bool) { let subscriptionState = subscribed == true ? "Subscribed" : "Unsubscribed" let preposition = subscribed == true ? "for" : "from" @@ -437,7 +447,7 @@ private extension Zephyr { Prints a status to the console if - debugEnabled == true + debugEnabled == true - parameter status: The string that should be printed to the console.