add printing log function for debug
mark failure on spec result if complete result is not output