Skip to content

Commit

Permalink
fix logger-warn-leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Jul 25, 2024
1 parent 897a679 commit c046c6a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion radicale/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _get_application_instance(config_path: str, wsgi_errors: types.ErrorStream
if not miss and source != "default config":
default_config_active = False
if default_config_active:
logger.warn("%s", "No config file found/readable - only default config is active")
logger.warning("%s", "No config file found/readable - only default config is active")
_application_instance = Application(configuration)
if _application_config_path != config_path:
raise ValueError("RADICALE_CONFIG must not change: %r != %r" %
Expand Down
2 changes: 1 addition & 1 deletion radicale/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def exit_signal_handler(signal_number: int,
default_config_active = False

if default_config_active:
logger.warn("%s", "No config file found/readable - only default config is active")
logger.warning("%s", "No config file found/readable - only default config is active")

if args_ns.verify_storage:
logger.info("Verifying storage")
Expand Down
4 changes: 2 additions & 2 deletions radicale/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,15 @@ def serve(configuration: config.Configuration,
try:
getaddrinfo = socket.getaddrinfo(address_port[0], address_port[1], 0, socket.SOCK_STREAM, socket.IPPROTO_TCP)
except OSError as e:
logger.warn("cannot retrieve IPv4 or IPv6 address of '%s': %s" % (format_address(address_port), e))
logger.warning("cannot retrieve IPv4 or IPv6 address of '%s': %s" % (format_address(address_port), e))
continue
logger.debug("getaddrinfo of '%s': %s" % (format_address(address_port), getaddrinfo))
for (address_family, socket_kind, socket_proto, socket_flags, socket_address) in getaddrinfo:
logger.debug("try to create server socket on '%s'" % (format_address(socket_address)))
try:
server = server_class(configuration, address_family, (socket_address[0], socket_address[1]), RequestHandler)
except OSError as e:
logger.warn("cannot create server socket on '%s': %s" % (format_address(socket_address), e))
logger.warning("cannot create server socket on '%s': %s" % (format_address(socket_address), e))
continue
servers[server.socket] = server
server.set_app(application)
Expand Down

0 comments on commit c046c6a

Please sign in to comment.