Dire prehooks are evaluated only if all preconditions evaluate to true. The rationale behind this is that prehooks can assume the world is in a valid state when they execute. Logging, however, should probably execute regardless of precondition results, and therefore should execute before precondition evaluation. The ideal solution is an eager-prehook function.
Dire prehooks are evaluated only if all preconditions evaluate to true. The rationale behind this is that prehooks can assume the world is in a valid state when they execute. Logging, however, should probably execute regardless of precondition results, and therefore should execute before precondition evaluation. The ideal solution is an eager-prehook function.