From 77c66ed7f53036d09bd8646075a67d55158afbc4 Mon Sep 17 00:00:00 2001 From: James Kearney Date: Wed, 12 Aug 2020 15:47:35 -0500 Subject: [PATCH] fix: move custom API endpoint warning message to stderr --- src/lib/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/config.ts b/src/lib/config.ts index fa920482cea..b20fa391084 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -30,7 +30,7 @@ if (endpoint && endpoint !== config.API) { if (!parsedEndpoint || !parsedEndpoint.protocol || !parsedEndpoint.host) { throw new InvalidEndpointConfigError(); } - console.info( + console.warn( 'Using a custom API endpoint from `snyk config` (tip: it should contain path to `/api`):', endpoint, );