Fix debugging log position to give useful information

Signed-off-by: Ross Allan <rallanpcl@gmail.com>