Add new flag for debugging
Start to use logrus
Add logging to getHistoryEntriesChan