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

Next

move version compatibility check later

make sure we have oppurtunity to log user details before we abort
  • Loading branch information
Mike Blume
Mike Blume committed Oct 10, 2013
commit 48a5b65a3e02431d17856ead120a2dda52146e94
@@ -1468,20 +1468,20 @@ def main():
options = parse_options()
global LOGGLY_QA
LOGGLY_QA = os.environ.get('LOGGLY_QA', '').split()
version_compatibility_check(MINIMUM_SUPPORTED_PYTHON_VERSION)

if options.action == 'loggly_help':
loggly_help()
sys.exit()

log({"status":"start", "args": vars(options)})
current_environment = get_environment_details()
current_environment['options'] = options
log({
"operating_system": current_environment['operating_system'],
"syslog_versions": [ {"daemon": d, "version": v} for d,v in current_environment['syslog_versions'] ]
})
version_compatibility_check(MINIMUM_SUPPORTED_PYTHON_VERSION)
assert_os()

if options.action == 'loggly_help':
loggly_help()
sys.exit()

call_module(options.action, current_environment)
printMessage("Finished")
log({"status":"finish", "args": vars(options)})
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.