Show More
@@ -46,3 +46,13 b' def log(whencefmt, *whenceargs):' | |||
|
46 | 46 | _pipe.write('END %s %s\n' % (_session, whence)) |
|
47 | 47 | except IOError: |
|
48 | 48 | pass |
|
49 | ||
|
50 | def counter(label, amount, *labelargs): | |
|
51 | if not _isactive(): | |
|
52 | return | |
|
53 | l = label % labelargs | |
|
54 | # See above in log() for why this is in a try/except. | |
|
55 | try: | |
|
56 | _pipe.write('COUNTER %s %d %s\n' % (_session, amount, l)) | |
|
57 | except IOError: | |
|
58 | pass |
General Comments 0
You need to be logged in to leave comments.
Login now