diff --git a/src/models/analyzer.cr b/src/models/analyzer.cr index b6d27cc8..99a5d6ce 100644 --- a/src/models/analyzer.cr +++ b/src/models/analyzer.cr @@ -31,6 +31,9 @@ class Analyzer base = locator.get("#{key}_basepath") if base != "" @base_path = base + if @is_debug + @logger.debug("Base path is set to #{base}") + end end end diff --git a/src/models/detector.cr b/src/models/detector.cr index 6a05d2d8..a8001299 100644 --- a/src/models/detector.cr +++ b/src/models/detector.cr @@ -33,6 +33,9 @@ class Detector if custom_base != "" locator.set("#{@name}_basepath", custom_base) + if @is_debug + @logger.debug("Set #{@name}_basepath to #{custom_base}") + end else locator.set("#{@name}_basepath", @base_path) end diff --git a/src/models/noir.cr b/src/models/noir.cr index 28373140..ccadc588 100644 --- a/src/models/noir.cr +++ b/src/models/noir.cr @@ -106,6 +106,10 @@ class NoirRunner end def bake_endpoint(url : String, params : Array(Param)) + if @is_debug + @logger.debug "Baking endpoint #{url} with #{params.size} params." + end + final_url = url final_body = "" final_headers = [] of String @@ -155,6 +159,10 @@ class NoirRunner end end + if @is_debug + @logger.debug "Baked endpoint #{final_url} with #{final_body} body and #{final_headers.size} headers." + end + { url: final_url, body: final_body,