diff --git a/lib/match-request.class.ts b/lib/match-request.class.ts index 03d91bf..94e36ad 100644 --- a/lib/match-request.class.ts +++ b/lib/match-request.class.ts @@ -80,7 +80,9 @@ export function createMatchRequest( .info( `Searching for image ${ needle.id - } in region ${searchRegion.toString()}. Required confidence: ${minMatch}`, + } in region ${searchRegion.toString()}.${ + minMatch != null ? ` Required confidence: ${minMatch}` : "" + }`, ); return new MatchRequest( @@ -93,7 +95,11 @@ export function createMatchRequest( providerRegistry.getLogProvider().info( `Searching for ${isLineQuery(needle) ? "line" : "word"} { ${isLineQuery(needle) ? needle.by.line : needle.by.word} - } in region ${searchRegion.toString()}. Required confidence: ${minMatch}`, + } in region ${searchRegion.toString()}.${ + minMatch != null + ? ` Required confidence: ${minMatch}` + : "" + }`, ); return new MatchRequest(