Log any errors during toggling

This commit is contained in:
Charles Magahern
2016-01-01 01:04:09 -08:00
parent 459006aea0
commit 45b49bb2e5

View File

@@ -98,6 +98,7 @@ class WemoServer {
if (error != nil) { if (error != nil) {
clientError = NSError.xionError(.ConnectionError, underlying: error) clientError = NSError.xionError(.ConnectionError, underlying: error)
self._logError("Error toggling device \"\(device.name)\"", error: clientError!)
} }
completion(clientError) completion(clientError)