Merge lp:~spiv/udd/line-buffered-log into lp:udd

Proposed by Andrew Bennetts
Status: Merged
Merged at revision: 375
Proposed branch: lp:~spiv/udd/line-buffered-log
Merge into: lp:udd
Diff against target: 12 lines (+1/-1)
1 file modified
import_package.py (+1/-1)
To merge this branch: bzr merge lp:~spiv/udd/line-buffered-log
Reviewer Review Type Date Requested Status
Ubuntu Distributed Development Developers Pending
Review via email: mp+38796@code.launchpad.net

Description of the change

This is just a very small tweak to make the log files kept by import-package be more current, by only line-buffering writes to them.

To post a comment you must log in.
Revision history for this message
Robert Collins (lifeless) wrote :

+1

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'import_package.py'
2--- import_package.py 2010-10-03 18:38:48 +0000
3+++ import_package.py 2010-10-19 01:42:41 +0000
4@@ -915,7 +915,7 @@
5 if not os.path.exists(icommon.logs_dir):
6 os.makedirs(icommon.logs_dir)
7 log_name = os.path.join(icommon.logs_dir, package)
8- f = open(log_name, "ab")
9+ f = open(log_name, "ab", 1)
10 log_token = trace.push_log_file(f)
11 try:
12 mutter("Time (UTC): %s" % str(datetime.datetime.utcnow()))

Subscribers

People subscribed via source and target branches