Skip to content
Permalink
Browse files

Merge pull request #32 from IanTracyLC/cloudWatch-logger-check

Add check for Logger check for Type AWSCW and Space
  • Loading branch information
dzimine committed Dec 10, 2019
2 parents d0f3e01 + 80a7129 commit d2158f4b3426ce78d4fc00f183a5db8390900a97
Showing with 6 additions and 0 deletions.
  1. +6 −0 greengo/greengo.py
@@ -644,6 +644,12 @@ def create_loggers(self):

loggers = self.group['Loggers']
name = self.name + '_loggers'

for logger in loggers:
if 'Space' in logger and logger['Type'] == 'AWSCloudWatch':
log.error("Logs of type AWSCloudWatch cannot have 'Space' key")
return

log.info("Creating loggers definition: '{0}'".format(name))

# Create the Logger Definition

0 comments on commit d2158f4

Please sign in to comment.
You can’t perform that action at this time.