Skip to content
Snippets Groups Projects
Commit 3d80bd5c authored by Hans Fangohr's avatar Hans Fangohr
Browse files

fix syntax error from online merge

parent 76a99fb4
No related branches found
No related tags found
1 merge request!23use rich for logging formatting (if package available)
Pipeline #368916 passed
......@@ -61,7 +61,7 @@ def set_up_logging(loglevel="warning", filename=None):
if filename:
handlers.append(logging.FileHandler(filename))
# If 'rich' is available ("pip install rich" or "apt-get install python3-rich"),
# If 'rich' is available ("pip install rich" or "apt-get install python3-rich"),
# then use coloured output, otherwise proceed as before
try:
import rich.logging
......@@ -96,6 +96,7 @@ def set_up_logging(loglevel="warning", filename=None):
logging.debug(
f"Logging has been setup, loglevel={loglevel.upper()}"
+ f"{filename=} {rich_available=}"
)
# Helper class to change directory via context manager
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment