lnd.xprv/build
carla daae8a9944
multi: wrap logger to request shutdown from signal on critical error
This commit adds a shutdown logger which will send a request for
shutdown on critical errors. It uses the signal package to request safe
shutdown of the daemon. Since we init our logs in config validation,
we add a started channel to the signal package to prevent the case where
we have a critical log after the ShutdownLogger has started but before
the daemon has started listening for intercepts. In this case, we just
ignore the shutdown request.
2020-08-24 08:54:34 +02:00
..
deployment_dev.go build/deployment: add prod+dev targets 2018-10-05 13:04:45 +09:00
deployment_prod.go build/deployment: add prod+dev targets 2018-10-05 13:04:45 +09:00
deployment.go build/deployment: add prod+dev targets 2018-10-05 13:04:45 +09:00
log_default.go build/log: add log types + NewSubLogger 2018-10-05 13:04:45 +09:00
log_nolog.go build/log: add log types + NewSubLogger 2018-10-05 13:04:45 +09:00
log_shutdown.go multi: wrap logger to request shutdown from signal on critical error 2020-08-24 08:54:34 +02:00
log_stdlog.go build/log: add log types + NewSubLogger 2018-10-05 13:04:45 +09:00
log.go build: move log level parse code and add new leveled sub logger interface 2019-10-14 14:56:30 +02:00
loglevel_critical.go build/loglevel: add build flag hooks for log levels 2018-10-05 13:04:45 +09:00
loglevel_debug.go build/loglevel: add build flag hooks for log levels 2018-10-05 13:04:45 +09:00
loglevel_default.go build/loglevel: add build flag hooks for log levels 2018-10-05 13:04:45 +09:00
loglevel_error.go build/loglevel: add build flag hooks for log levels 2018-10-05 13:04:45 +09:00
loglevel_info.go build/loglevel: add build flag hooks for log levels 2018-10-05 13:04:45 +09:00
loglevel_off.go build/loglevel: add build flag hooks for log levels 2018-10-05 13:04:45 +09:00
loglevel_trace.go build/loglevel: add build flag hooks for log levels 2018-10-05 13:04:45 +09:00
loglevel_warn.go build/loglevel: add build flag hooks for log levels 2018-10-05 13:04:45 +09:00
logrotator.go multi: wrap logger to request shutdown from signal on critical error 2020-08-24 08:54:34 +02:00
prefix_log.go build: add prefixed logger 2019-10-03 10:21:59 +02:00
version.go build/version: bump to v0.11.0-beta 2020-08-19 07:14:41 -07:00