f2fb71c Fix NameError.

Authored and Committed by ralph 6 years ago
    Fix NameError.
    
    Here, `task_id` was referenced before it was defined.
    
    This fixes that error and adds a little more color to the log statement.