Skip to content

Commit

Permalink
Log version when debug enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrizek committed Jan 22, 2019
1 parent ba4a83c commit 3330479
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ghi/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from github import getPool, parsePayload
from irc import sendMessages
from validation import validatePayload
from __init__ import __version__


def handler(event, context=None):
Expand Down Expand Up @@ -49,6 +50,8 @@ def handler(event, context=None):
githubPayload = event["body"]

# Enhanced logging if debug is set
logging.debug("Ghi Version:")
logging.debug(__version__)
logging.debug("Payload:")
logging.debug(githubPayload)
logging.debug("Headers:")
Expand Down

0 comments on commit 3330479

Please sign in to comment.