mirror of
https://github.com/moby/moby.git
synced 2026-08-05 23:51:18 +00:00
Merge pull request #26725 from StefanScherer/log-error-to-event-log
Windows: Write fatal error to event log if running as service
This commit is contained in:
@@ -41,6 +41,9 @@ func notifySystem() {
|
||||
// notifyShutdown is called after the daemon shuts down but before the process exits.
|
||||
func notifyShutdown(err error) {
|
||||
if service != nil {
|
||||
if err != nil {
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
service.stopped(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user