[lxc-devel] [lxd/master] Enable go-dqlite debug
freeekanayaka on Github
lxc-bot at linuxcontainers.org
Wed Jul 10 14:01:57 UTC 2019
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 361 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190710/e745a562/attachment.bin>
-------------- next part --------------
From 74a8e3beeee1c8934b93190895b780026733517f Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free.ekanayaka at canonical.com>
Date: Wed, 10 Jul 2019 16:00:18 +0200
Subject: [PATCH] Enable go-dqlite debug
Signed-off-by: Free Ekanayaka <free.ekanayaka at canonical.com>
---
lxd/daemon.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lxd/daemon.go b/lxd/daemon.go
index 1d82f168f9..ca0a2f8742 100644
--- a/lxd/daemon.go
+++ b/lxd/daemon.go
@@ -21,7 +21,7 @@ import (
"github.com/pkg/errors"
"golang.org/x/net/context"
"golang.org/x/sys/unix"
- "gopkg.in/lxc/go-lxc.v2"
+ lxc "gopkg.in/lxc/go-lxc.v2"
"gopkg.in/macaroon-bakery.v2/bakery"
"gopkg.in/macaroon-bakery.v2/bakery/checkers"
@@ -609,6 +609,7 @@ func (d *Daemon) init() error {
if shared.StringInSlice("dqlite", trace) {
clusterLogLevel = "TRACE"
}
+ os.Setenv("GO_DQLITE_DEBUG", "1")
d.gateway, err = cluster.NewGateway(
d.db,
certInfo,
More information about the lxc-devel
mailing list