The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4460
Advertising
This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.
=== Description (from pull-request) ===
Should make debugging startup failures a bit easier.
Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com>
From dc00860a9192e45107f4ff2a5fa697492b543366 Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free.ekanay...@canonical.com>
Date: Mon, 16 Apr 2018 17:18:35 +0000
Subject: [PATCH] Log the error that made Daemon.Init() fail
Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com>
---
lxd/main_daemon.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/lxd/main_daemon.go b/lxd/main_daemon.go
index 9eb005a6a..16adf240c 100644
--- a/lxd/main_daemon.go
+++ b/lxd/main_daemon.go
@@ -81,6 +81,7 @@ func (c *cmdDaemon) Run(cmd *cobra.Command, args []string)
error {
err = d.Init()
if err != nil {
+ logger.Errorf("Daemon failed to start: %v", err)
return err
}
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel