move the err_log at the very beginning of canal_controller

Signed-off-by: Ray Allen <ray@ray-Lenovo-IdeaPad-S400.(none)>