Refine codes:

1. Remove useless variable.
2. Remove annoying [dogtim] log prefix.