Actions
Feature #2487
closedsimulated logger
Start date:
08/21/2013
Due date:
% Done:
0%
Estimated time:
Deliverable:
Description
Because Leginon node classes always assumes that there is a logger attribute, it is hard to do a direct python command testing. A simulated logger makes it possible to test, for example, correctorclient.CorrectorClient()
Updated by Anchi Cheng over 11 years ago
- Category set to Leginon subsystem
- Status changed from Assigned to In Code Review
- Assignee changed from Anchi Cheng to Jim Pulokas
r17833 adds this.
Use it like this:
from leginon import correctorclient,simulogger c_client = correctorclient.CorrectorClient() c_client.logger = simulogger.Logger()
Updated by Anchi Cheng about 11 years ago
- Category changed from Leginon subsystem to developer tool
- Status changed from In Code Review to Closed
- Target version set to myami-3.0
no one to review
Actions