Skip to content

Commit e40222d

Browse files
authored
fix: use warn (#951)
* fix: use warn * add indentations
1 parent a9b7558 commit e40222d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/appium_lib/driver.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,6 @@ def appium_client_version
393393
def self.absolute_app_path(opts)
394394
raise 'opts must be a hash' unless opts.is_a? Hash
395395

396-
::Appium::Logger.warning('[Deprecation] Converting the path to absolute path will be removed. ' \
397-
'Please specify the full path which can be accessible from the appium server')
398-
399396
# FIXME: 'caps' and 'app' will be correct
400397
caps = opts[:caps] || opts['caps'] || {}
401398
app_path = caps[:app] || caps['app']
@@ -404,6 +401,9 @@ def self.absolute_app_path(opts)
404401
return app_path if app_path.start_with? 'sauce-storage:'
405402
return app_path if app_path =~ URI::DEFAULT_PARSER.make_regexp # public URL for Sauce
406403

404+
::Appium::Logger.warn('[Deprecation] Converting the path to absolute path will be removed. ' \
405+
'Please specify the full path which can be accessible from the appium server')
406+
407407
absolute_app_path = File.expand_path app_path
408408
if File.exist? absolute_app_path
409409
absolute_app_path

0 commit comments

Comments
 (0)