*: better logging
Merge pull request #1421 from xiangli-cmu/logging

*: better logging