Skip to content
Snippets Groups Projects
Commit 6eea2e63 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

logs: info only if issues are disabled

parent 23aed699
No related branches found
No related tags found
No related merge requests found
...@@ -605,8 +605,12 @@ async function ensureIssue(title, body) { ...@@ -605,8 +605,12 @@ async function ensureIssue(title, body) {
return 'created'; return 'created';
} }
} catch (err) /* istanbul ignore next */ { } catch (err) /* istanbul ignore next */ {
if (err.message.startsWith('Issues are disabled for this repo')) {
logger.info(`Could not create issue: ${err.message}`);
} else {
logger.warn(expandError(err), 'Could not ensure issue'); logger.warn(expandError(err), 'Could not ensure issue');
} }
}
return null; return null;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment