diff --git a/environ/environ.py b/environ/environ.py index 78e04325..ba4b341d 100644 --- a/environ/environ.py +++ b/environ/environ.py @@ -636,7 +636,7 @@ def read_env(cls, env_file=None, **overrides): frame = sys._getframe() env_file = os.path.join(os.path.dirname(frame.f_back.f_code.co_filename), '.env') if not os.path.exists(env_file): - warnings.warn( + logger.info( "%s doesn't exist - if you're not configuring your " "environment separately, create one." % env_file) return @@ -645,8 +645,8 @@ def read_env(cls, env_file=None, **overrides): with open(env_file) if isinstance(env_file, basestring) else env_file as f: content = f.read() except IOError: - warnings.warn( - "Error reading %s - if you're not configuring your " + logger.info( + "%s not found - if you're not configuring your " "environment separately, check this." % env_file) return