Commit 229cd09e authored by Chris Lamb's avatar Chris Lamb
Browse files

Revert "Drop state transition logging temporarily. (Ref: #40)"

This reverts commit c6a57b57.
parent c6a57b57
......@@ -2,6 +2,8 @@ from email_from_template import send_mail
from django.contrib.auth import get_user_model
from freenodejobs.utils import log
from .enums import StateEnum
UserModel = get_user_model()
......@@ -17,6 +19,8 @@ def dispatch(job, old_state, new_state, actor, description):
)"Job #{} state {} -> {}",, old_state, new_state)
for x, y, fn in TRANSITIONS:
if (old_state, new_state) == (x, y):
fn(job, history)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment