Back to code reviews! This time I review a piece of code by Sandeep, from his repo logpipe.
The program simply reads from standard input and sends each line both to standard output and a logging service.
What could go wrong? Many things!
References:
- cloud logging docs: https://cloud.google.com/go/logging
- original repo: https://github.com/thesandlord/logpipe
- source code: https://github.com/campoy/justforfunc/tree/master/15-logpipe