From 811a1af4bff848fe190f9efff6d3d5aa3488b579 Mon Sep 17 00:00:00 2001 From: David Sulpy Date: Mon, 14 Sep 2015 18:33:21 -0500 Subject: [PATCH] added an error log when the grokerSubdomain is ever null or empty and the app is trying to ship events or create a bucket --- .../initial-state-event-streamer.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/smartapps/initialstate-events/initial-state-event-streamer.src/initial-state-event-streamer.groovy b/smartapps/initialstate-events/initial-state-event-streamer.src/initial-state-event-streamer.groovy index c480a11..e682f36 100644 --- a/smartapps/initialstate-events/initial-state-event-streamer.src/initial-state-event-streamer.groovy +++ b/smartapps/initialstate-events/initial-state-event-streamer.src/initial-state-event-streamer.groovy @@ -265,9 +265,10 @@ def tryCreateBucket() { // can't ship events if there is no grokerSubdomain if (atomicState.grokerSubdomain == null || atomicState.grokerSubdomain == "") { + log.error "streaming url is currently null" return } - + // if the bucket has already been created, no need to continue if (atomicState.isBucketCreated) { return @@ -356,6 +357,7 @@ def tryShipEvents() { // can't ship events if there is no grokerSubdomain if (atomicState.grokerSubdomain == null || atomicState.grokerSubdomain == "") { + log.error "streaming url is currently null" return } // can't ship if access key and bucket key are null, so finish trying