[lxc-devel] [lxd/master] Log the error that made Daemon.Init() fail

freeekanayaka on Github lxc-bot at linuxcontainers.org
Mon Apr 16 17:21:56 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 417 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180416/21cc31ca/attachment.bin>
-------------- next part --------------
From dc00860a9192e45107f4ff2a5fa697492b543366 Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free.ekanayaka at 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.ekanayaka at 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
 	}
 


More information about the lxc-devel mailing list