Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
Improved logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtSabintsev committed Nov 6, 2015
1 parent 2b0183c commit 10f5c9e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Zephyr.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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"
Expand All @@ -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.

Expand Down

0 comments on commit 10f5c9e

Please sign in to comment.