change java style code to groovy style
add a log line