Comments (4)
Panic - Recover Pattern:
- Golang으로 안전한 서비스 만들기 — Jaehyjjang
- Some Panic/Recover Use Cases — Go 101 (Golang Knowledgebase)
- Usecase: Automatically Restart A Crashed Goroutine
- However, usually, this panic/recover use pattern is not recommended to use. It is less readable and less efficient.
https://github.com/pkg/errors 로 errors.Wrap
가지고 잘 감싼다음에, 최상위단 (ex: gRPC API Loop)에서 잘 핸들링해서 Cause 담아서 예쁘게 로깅해주는게 좋을것 같은데 어떻게 생각하시나영
'+ gRPC로 어떻게 에러반환할지도 생각해봐야할듯..?
from airbloc-go.
최하위단에 패키지들에 errors.New로 나오는 에러들을 모두 정의해 놓은 다음
최상위단에서 errors.Cause로 체킹하는 방식이 좋을것 같습니다.
지금 if err != nil {} 이 구조가 계속 나오다보니 피로해지는 문제가 있는데,
어쩔 수 없네요 이런..
from airbloc-go.
https://github.com/grpc/grpc/blob/master/doc/statuscodes.md 이런게 있넹
from airbloc-go.
Logger candidates:
- https://github.com/ipfs/go-log
- https://github.com/apsdehal/go-logger
- https://github.com/apex/log
- https://github.com/inconshreveable/log15
- https://github.com/azer/logger
- https://github.com/Sirupsen/logrus
- https://github.com/mgutz/logxi
- https://github.com/golang/glog
We're now going to test azer/logger...
from airbloc-go.
Related Issues (20)
- Data Type System
- Bundle Partitioning Research
- [Docs] Adopt swagger with gin
- [Dev] Grpc to REST api
- [Dev] Remove contracts
- [Test] Change testing tools
- [Dev] Migrate ethereum bind adapter to klaytn
- [Api] Consent bulk processing
- [Bind] Get revert message (BoundContract)
- "nonce too low" Error for Account Proxy
- App Manager, Phase 2 (With 🥩)
- Protobuf 정의 통일하기
- build process 최신화 및 readme 업데이트 HOT 2
- p2p: topic "/lookup/<address>" not found warning
- p2p: dial backoff error
- Refactor Bundle Data Structure
- OwnerAnID to UserID
- Warehouse와 Data api 기능 분리
- lookup error : address not found
- Dockerization
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airbloc-go.