UK: use logger class instead of print to print execption