mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-20 02:27:21 +01:00
daae8a9944
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. |
||
---|---|---|
.. | ||
deployment_dev.go | ||
deployment_prod.go | ||
deployment.go | ||
log_default.go | ||
log_nolog.go | ||
log_shutdown.go | ||
log_stdlog.go | ||
log.go | ||
loglevel_critical.go | ||
loglevel_debug.go | ||
loglevel_default.go | ||
loglevel_error.go | ||
loglevel_info.go | ||
loglevel_off.go | ||
loglevel_trace.go | ||
loglevel_warn.go | ||
logrotator.go | ||
prefix_log.go | ||
version.go |