Skip to content

Commit 127ab0f

Browse files
Merge pull request #286 from sebulibah/satosa/satosa_config-logger
Improve logging - satosa.satosa_config
2 parents b1991bc + 6d739a7 commit 127ab0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/satosa/satosa_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ def _load_yaml(self, config_file):
147147
with open(config_file) as f:
148148
return yaml.safe_load(f.read())
149149
except yaml.YAMLError as exc:
150-
logger.error("Could not parse config as YAML: {}", str(exc))
150+
logger.error("Could not parse config as YAML: {}".format(exc))
151151
if hasattr(exc, 'problem_mark'):
152152
mark = exc.problem_mark
153-
logger.error("Error position: (%s:%s)" % (mark.line + 1, mark.column + 1))
153+
logger.error("Error position: ({line}:{column})".format(line=mark.line + 1, column=mark.column + 1))
154154
except IOError as e:
155-
logger.debug("Could not open config file: {}", str(e))
155+
logger.debug("Could not open config file: {}".format(e))
156156

157157
return None

0 commit comments

Comments
 (0)