Get Mystery Box with random crypto!

On the importance of logging. For a programmer, programming w | MadelineProto | Official Channel

On the importance of logging.

For a programmer, programming without logs is like driving with closed eyes: at any moment you could crash against a wall, and you wouldn't even see it coming.

Many times I see MadelineProto users asking me for help, saying that their "bots don't work" or "it worked yesterday", often blaming me for their mistakes.

This is precisely why you need logging: with logging, you can figure out exactly what went wrong in your (or my!) code, and fix the error immediately.

MadelineProto now allows automatic error reporting with full logs and exception traces as soon as the script crashes (automatically recovering the bot from any errors).
It is enabled if you use getReportPeers + startAndLoop: it is a very useful feature for devs, and can help you to find and fix problems before they are noticed by your users.

Resources:
- Error reporting
- Logging
- Exceptions