Skip to content

Commit

Permalink
Better quoting in logs messages
Browse files Browse the repository at this point in the history
  • Loading branch information
cmutel committed Jul 8, 2024
1 parent f2c1d42 commit ce55895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bw_simapro_csv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ def __init__(
raise ValueError(
"Can't find database name in parameter `database_name` or SimaPro header"
)
logger.info("Using database name {n}", n=self.database_name)
logger.info("Using database name '{n}'", n=self.database_name)

self.uses_end_text = False
self.filepath = str(path_or_stream) if isinstance(path_or_stream, Path) else "<StringIO>"

logger.info(
"SimaPro CSV import started.\n\tFile: {file}\n\tDelimiter: {delimiter}\n\tName: {name}",
"SimaPro CSV import started.\n\tFile: '{file}'\n\tDelimiter: '{delimiter}'\n\tName: '{name}'",
file=path_or_stream if isinstance(path_or_stream, Path) else "<StringIO>",
delimiter="<tab>" if self.header["delimiter"] == "\t" else self.header["delimiter"],
name=self.header["project"] or "(Not given)",
Expand Down

0 comments on commit ce55895

Please sign in to comment.