From 33304796eba39fb051b0d85aee867951854d36ca Mon Sep 17 00:00:00 2001 From: Graham Krizek Date: Tue, 22 Jan 2019 12:52:52 -0600 Subject: [PATCH] Log version when debug enabled --- ghi/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ghi/index.py b/ghi/index.py index 4032ff1..3b52af6 100644 --- a/ghi/index.py +++ b/ghi/index.py @@ -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): @@ -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:")