diff --git a/lib/api/github.js b/lib/api/github.js
index 1b768922be8c4097cc7250c7cd7a038c7d3af094..1abbd0b61ee232206e7399308f16c60683787674 100644
--- a/lib/api/github.js
+++ b/lib/api/github.js
@@ -156,8 +156,9 @@ async function initRepo(repoName, token, endpoint, repoLogger) {
   config.fileList = null;
   config.prList = null;
   const platformConfig = {};
+  let res;
   try {
-    const res = await get(`repos/${repoName}`, {
+    res = await get(`repos/${repoName}`, {
       headers: {
         accept: 'application/vnd.github.loki-preview+json',
       },
@@ -206,7 +207,7 @@ async function initRepo(repoName, token, endpoint, repoLogger) {
       logger.debug('Repository is not initiated');
       throw new Error('uninitiated');
     }
-    logger.error({ err }, 'Unknown GitHub initRepo error');
+    logger.info({ err, res }, 'Unknown GitHub initRepo error');
     throw err;
   }
   return platformConfig;