Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log old python #54

Merged
merged 6 commits into from Oct 14, 2013
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

pull out function for py version

  • Loading branch information
Mike Blume
Mike Blume committed Oct 10, 2013
commit 6fbb315b7a57b9b0cde92760133c2c6ea7e75dfe
@@ -316,6 +316,9 @@ def sendEnvironment(data):
printLog("Sending environment details to Loggly Server.")
log(data)

def get_python_version_string():
return ".".join(map(str, sys.version_info))

def sys_exit(reason = None):
"""
If script fails, send environment details with reason for failure to loggly
@@ -324,7 +327,7 @@ def sys_exit(reason = None):
data = {
"operating_system": current_environment['operating_system'],
"syslog_versions": current_environment['syslog_versions'],
"python_version": ".".join(map(str, sys.version_info)),
"python_version": get_python_version_string(),
"reason":reason,
"username":USER,
"subdomain": SUBDOMAIN
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.