2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-08-24 04:00:28 +00:00
Files
confluent/confluent_server
Jarrod Johnon 6acaac8644 Add one-call tracing to log-as-a-file
When a log object is used as a 'dumb' file target, show the origin of the
output.  The motivation here is that 'print' statements are intended to
be an unusual event that should be easily tracked down and eliminated
once their specific use has concluded.
In xcatd, running '-f' means a lot of mysterious output that is hard
to manage as they frequently print out variable contents without
searchable context.  For example, if in xcatd someone randomply prints out
a varibale with a nodename, we might see a stray:
n1
With this change (together with previous changes), the same statement
results in stdout log appearing like:
Jan 19 14:20:54   File "/opt/confluent/lib/python/confluent/plugins/hardwaremanagement/ipmi.py", line 364, in _dict_sensor
    print nodename: n1
2015-01-19 14:35:22 -05:00
..
2014-07-14 14:54:12 -04:00
2014-07-14 14:54:12 -04:00
2014-07-14 14:54:12 -04:00
2014-07-14 14:54:12 -04:00
2014-07-14 14:54:12 -04:00
2014-11-25 14:16:50 -05:00