logs: lower graphql warn to info

This commit is contained in:
Rhys Arkins 2018-09-13 05:54:21 +02:00
parent 6f0ceaecc5
commit f91d064d14

View file

@ -996,7 +996,10 @@ async function getClosedPrs() {
const prNumbers = [];
// istanbul ignore if
if (!res.data) {
logger.warn({ query, res }, 'No graphql res.data');
logger.info(
{ query, res },
'No graphql res.data, returning empty list'
);
return {};
}
for (const pr of res.data.repository.pullRequests.nodes) {