fixed logging issue raised in last commit