Skip to content

Commit

Permalink
Tone down the logging level of the home dir not found warning (#3351)
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm authored and asvetlov committed Oct 20, 2018
1 parent f46766d commit fd7bb7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/3351.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Toned down the logging level of the "home directory not found" warning when looking for .netrc
4 changes: 2 additions & 2 deletions aiohttp/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ def netrc_from_env() -> Optional[netrc.netrc]:
home_dir = Path.home()
except RuntimeError as e: # pragma: no cover
# if pathlib can't resolve home, it may raise a RuntimeError
client_logger.warning('Could not resolve home directory when '
'trying to look for .netrc file: %s', e)
client_logger.debug('Could not resolve home directory when '
'trying to look for .netrc file: %s', e)
return None

netrc_path = home_dir / (
Expand Down

0 comments on commit fd7bb7c

Please sign in to comment.