Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: infra/services/builder_alerts/__main__.py

Issue 2185563002: Call sys.exit after logging threads (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Addressed comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/services/builder_alerts/__main__.py
diff --git a/infra/services/builder_alerts/__main__.py b/infra/services/builder_alerts/__main__.py
index 9107a3f3445b51086982517b626efc4dad275e52..ede241cada5c7b2980816f0318a77335ac935c47 100755
--- a/infra/services/builder_alerts/__main__.py
+++ b/infra/services/builder_alerts/__main__.py
@@ -452,8 +452,10 @@ def main(args):
if __name__ == '__main__':
logging.debug('Started main')
- sys.exit(main(sys.argv[1:]))
+ retcode = main(sys.argv[1:])
current_thread_descriptions = [t.name + (' (daemon)' if t.isDaemon() else '')
- for t in threading.enumerate()]
+ for t in threading.enumerate()
+ if t is not threading.current_thread()]
tandrii(chromium) 2016/07/26 14:25:57 wow, "is not" actually works. I'd use "==".
logging.debug(
'Leaving main. Threads: %s', ', '.join(current_thread_descriptions))
+ sys.exit(retcode)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698