Update main.go
Description
This PR fixes #288
Notes for Reviewers
log.Fatal() has been replaced with log.Error()
Signed commits
- [x] Yes, I signed my commits.
Yay, your first pull request! :thumbsup: A contributor will be by to give feedback soon. In the meantime, please review the Layer5 Community Welcome Guide and sure to join the community Slack. Be sure to double-check that you have signed your commits. Here are instructions for making signing an implicit activity while peforming a commit.
Thanks, @ShivangShandilya, could you help with the Go lint issue too here?
Thanks, @ShivangShandilya, could you help with the Go lint issue too here?
Can you elaborate on this??
I personally would favor usage of log.Fatal instead of consequent log.Error and return statements. It is because return statementstend to return while log.Fatal tends to stop the program. Imagine threading situations, where Fatal would be preferred over return's. I'd say this PR will rather degrade the system.