Update detect.sh

logger added in detect