From 2db90181f2efa34b021c1483c0ea032ea383d006 Mon Sep 17 00:00:00 2001 From: Odafe Idogho Date: Mon, 24 Jun 2024 15:17:24 -0400 Subject: [PATCH] fix: change error logs in the gitlab contributors file --- src/lib/gitlab/gitlab-contributors.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/gitlab/gitlab-contributors.ts b/src/lib/gitlab/gitlab-contributors.ts index 8894500..283f4d2 100644 --- a/src/lib/gitlab/gitlab-contributors.ts +++ b/src/lib/gitlab/gitlab-contributors.ts @@ -72,7 +72,7 @@ export const fetchGitlabContributors = async ( } } catch (err) { debug('Failed to retrieve contributors from Gitlab.\n' + err); - console.log( + console.error( 'Failed to retrieve contributors from Gitlab. Try running with `DEBUG=snyk* snyk-contributor`', ); } @@ -152,7 +152,7 @@ export const fetchGitlabContributorsForProject = async ( } } catch (err) { debug('Failed to retrieve commits from Gitlab.\n' + err); - console.log( + console.error( 'Failed to retrieve commits from Gitlab. Try running with `DEBUG=snyk* snyk-contributor`', ); } @@ -221,7 +221,7 @@ export const fetchGitlabProjects = async ( } } catch (err) { debug('Failed to retrieve project list from Gitlab.\n' + err); - console.log( + console.error( 'Failed to retrieve project list from Gitlab. Try running with `DEBUG=snyk* snyk-contributor`', ); } @@ -252,7 +252,7 @@ export const findGroupPaths = async ( }); } catch (err) { debug('Failed to retrieve group from Gitlab.\n' + err); - console.log( + console.error( 'Failed to retrieve group from Gitlab. Try running with `DEBUG=snyk* snyk-contributor`', ); }