log when compiling plan