Skip to content

Commit a84163b

Browse files
Output debug status only when enabled
1 parent cc3628a commit a84163b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/appium_lib/driver.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,10 @@ def initialize opts={}
279279
# enable debug patch
280280
# !!'constant' == true
281281
@debug = appium_lib_opts.fetch :debug, !!defined?(Pry)
282-
puts "Debug is: #{@debug}"
282+
283283
if @debug
284284
ap opts unless opts.empty?
285+
puts "Debug is: #{@debug}"
285286
puts "Device is: #{@device}"
286287
patch_webdriver_bridge
287288
end

0 commit comments

Comments
 (0)