From 75b0bdc3228188516785c51a3f7c4f547e98a5fb Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@keylocation.sg>
Date: Tue, 1 Aug 2017 13:31:27 +0200
Subject: [PATCH] fix: Fix merge debug message (#570)

---
 lib/api/github.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/api/github.js b/lib/api/github.js
index bedb81d894..cd4e10e18d 100644
--- a/lib/api/github.js
+++ b/lib/api/github.js
@@ -173,6 +173,7 @@ async function initRepo(repoName, token, endpoint, repoLogger) {
   const platformConfig = {};
   try {
     const res = await ghGotRetry(`repos/${repoName}`);
+    logger.trace({ repositoryDetails: res.body }, 'Repository details');
     platformConfig.privateRepo = res.body.private === true;
     platformConfig.isFork = res.body.fork === true;
     config.owner = res.body.owner.login;
@@ -566,7 +567,7 @@ async function mergePr(pr) {
       logger.debug({ options, url }, `mergePr`);
       await ghGotRetry.put(url, options);
     } catch (err1) {
-      logger.debug({ err: err1 }, `Failed to ${options.body.merge_method} PR}`);
+      logger.debug({ err: err1 }, `Failed to ${options.body.merge_method} PR`);
       try {
         options.body.merge_method = 'squash';
         logger.debug({ options, url }, `mergePr`);
-- 
GitLab