Revision 693
Added by Borja Sotomayor over 14 years ago
log.py | ||
---|---|---|
29 | 29 |
|
30 | 30 |
def makeRecord(self, name, lvl, fn, lno, msg, args, exc_info, func=None, extra=None): |
31 | 31 |
# Modify "extra" parameter keyword |
32 |
try: |
|
33 |
haizeatime = get_clock().get_time() |
|
34 |
except: |
|
35 |
# This is a kludge. Basically, calling get_clock will |
|
36 |
# fail if Manager is not yet fully constructed (since it's |
|
37 |
# a singleton). The more correct solution is to more cleanly |
|
38 |
# separate the initialization code in the Manager from the |
|
39 |
# initialization that actually involves interacting with |
|
40 |
# other components (which may want to use the logger) |
|
41 |
haizeatime = " " |
|
32 |
haizeatime = get_clock().get_time() |
|
42 | 33 |
extra = { "haizeatime" : haizeatime} |
43 | 34 |
if sys.version_info[1] <= 4: |
44 | 35 |
name = "[%s] %s" % (haizeatime, name) |
Also available in: Unified diff
- Separated constructor from initialization code in Manager
- Added dynamic loading of pricing policies