File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -82,14 +82,14 @@ def load_config(filename: str) -> Dict:
82
82
pyproject_filename = root / "pyproject.toml"
83
83
84
84
if not pyproject_filename .is_file ():
85
- logger .info ("Using defaults for python-lsp-black : %r" , defaults )
85
+ logger .info ("Using defaults: %r" , defaults )
86
86
return defaults
87
87
88
88
try :
89
89
pyproject_toml = toml .load (str (pyproject_filename ))
90
90
except (toml .TomlDecodeError , OSError ):
91
- logger .info (
92
- "Error decoding pyproject.toml, using defaults for python-lsp-black : %r" ,
91
+ logger .warning (
92
+ "Error decoding pyproject.toml, using defaults: %r" ,
93
93
defaults ,
94
94
)
95
95
return defaults
@@ -121,8 +121,6 @@ def load_config(filename: str) -> Dict:
121
121
122
122
config ["target_version" ] = target_version
123
123
124
- logger .info (
125
- "Using config from %s for python-lsp-black: %r" , pyproject_filename , config
126
- )
124
+ logger .info ("Using config from %s: %r" , pyproject_filename , config )
127
125
128
126
return config
You can’t perform that action at this time.
0 commit comments