Skip to content

Commit 050ac3c

Browse files
committed
Fix deprecated logging usages
1 parent 132a650 commit 050ac3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scyjava/config/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def add_endpoints(*new_endpoints):
2020
DEPRECATED since v1.2.1
2121
Please modify the endpoints field directly instead.
2222
"""
23-
_logger.warn('Deprecated method call: scyjava.config.add_endpoints(). Please modify scyjava.config.endpoints directly instead.')
23+
_logger.warning('Deprecated method call: scyjava.config.add_endpoints(). Please modify scyjava.config.endpoints directly instead.')
2424
global endpoints
2525
_logger.debug('Adding endpoints %s to %s', new_endpoints, endpoints)
2626
endpoints.extend(new_endpoints)
@@ -31,7 +31,7 @@ def get_endpoints():
3131
DEPRECATED since v1.2.1
3232
Please access the endpoints field directly instead.
3333
"""
34-
_logger.warn('Deprecated method call: scyjava.config.get_endpoints(). Please access scyjava.config.endpoints directly instead.')
34+
_logger.warning('Deprecated method call: scyjava.config.get_endpoints(). Please access scyjava.config.endpoints directly instead.')
3535
global endpoints
3636
return endpoints
3737

0 commit comments

Comments
 (0)