Show More
@@ -28,7 +28,17 b' def log(whencefmt, *whenceargs):' | |||
|
28 | 28 | _session = os.environ.get('HGCATAPULTSESSION', 'none') |
|
29 | 29 | whence = whencefmt % whenceargs |
|
30 | 30 | try: |
|
31 | # Both writes to the pipe are wrapped in try/except to ignore | |
|
32 | # errors, as we can see mysterious errors in here if the pager | |
|
33 | # is active. Presumably other conditions could trigger | |
|
34 | # problems too. | |
|
35 | try: | |
|
31 | 36 | _pipe.write('START %s %s\n' % (_session, whence)) |
|
37 | except IOError: | |
|
38 | pass | |
|
32 | 39 | yield |
|
33 | 40 | finally: |
|
41 | try: | |
|
34 | 42 | _pipe.write('END %s %s\n' % (_session, whence)) |
|
43 | except IOError: | |
|
44 | pass |
General Comments 0
You need to be logged in to leave comments.
Login now