using channel to handle the log message when # of gorouines is greater than 1