added an error log when the grokerSubdomain is ever null or empty and the app is trying to ship events or create a bucket

This commit is contained in:
David Sulpy
2015-09-14 18:33:21 -05:00
parent 6eac6affcf
commit 811a1af4bf

View File

@@ -265,9 +265,10 @@ def tryCreateBucket() {
// can't ship events if there is no grokerSubdomain // can't ship events if there is no grokerSubdomain
if (atomicState.grokerSubdomain == null || atomicState.grokerSubdomain == "") { if (atomicState.grokerSubdomain == null || atomicState.grokerSubdomain == "") {
log.error "streaming url is currently null"
return return
} }
// if the bucket has already been created, no need to continue // if the bucket has already been created, no need to continue
if (atomicState.isBucketCreated) { if (atomicState.isBucketCreated) {
return return
@@ -356,6 +357,7 @@ def tryShipEvents() {
// can't ship events if there is no grokerSubdomain // can't ship events if there is no grokerSubdomain
if (atomicState.grokerSubdomain == null || atomicState.grokerSubdomain == "") { if (atomicState.grokerSubdomain == null || atomicState.grokerSubdomain == "") {
log.error "streaming url is currently null"
return return
} }
// can't ship if access key and bucket key are null, so finish trying // can't ship if access key and bucket key are null, so finish trying