From c0117d44cd75df939d51b4e435a9d15253d98f8f Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Tue, 11 Aug 2020 17:25:18 +0200 Subject: [PATCH] logs: log bazel WORKSPACE file --- lib/manager/bazel/extract.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/manager/bazel/extract.ts b/lib/manager/bazel/extract.ts index ba8cedc9fb..83823e4ebe 100644 --- a/lib/manager/bazel/extract.ts +++ b/lib/manager/bazel/extract.ts @@ -99,10 +99,13 @@ function parseContent(content: string): string[] { ); } -export function extractPackageFile(content: string): PackageFile | null { +export function extractPackageFile( + content: string, + fileName?: string +): PackageFile | null { const definitions = parseContent(content); if (!definitions.length) { - logger.debug('No matching WORKSPACE definitions found'); + logger.debug({ fileName }, 'No matching bazel WORKSPACE definitions found'); return null; } logger.debug({ definitions }, `Found ${definitions.length} definitions`); -- GitLab