Open aaronangxz opened 2 years ago
Currently, when we set Debug = true, the following will be logged continuously:
Debug = true
... 2022/06/17 14:14:19 Endpoint: getUpdates, response: {"ok":true,"result":[]} 2022/06/17 14:14:19 Endpoint: getUpdates, params: map[allowed_updates:null offset:811825219 timeout:3600] 2022/06/17 14:15:09 Endpoint: getUpdates, response: {"ok":true,"result":[]} 2022/06/17 14:15:09 Endpoint: getUpdates, params: map[allowed_updates:null offset:811825219 timeout:3600] ...
It floods the log and frankly speaking I do not need this information.
Maybe we can have a flag or a different level of logging? Say
Log bool //Logs only relevant updates i.e.in this case if the response is empty it will skip LogAll bool //Logs everything
Currently, when we set
Debug = true
, the following will be logged continuously:It floods the log and frankly speaking I do not need this information.
Maybe we can have a flag or a different level of logging? Say