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

Merge branch 'improve-machine-readable-logging' of...

Merge branch 'improve-machine-readable-logging' of gitlab.gwdg.de:mpsd-cs/mpsd-software-environments into improve-machine-readable-logging
parents 5c441ea5 1a1762c3
No related branches found
No related tags found
1 merge request!28improve machine readable logging
Pipeline #369800 failed
...@@ -91,7 +91,7 @@ def read_metadata_from_logfile(logfile: Union[str, Path]) -> dict: ...@@ -91,7 +91,7 @@ def read_metadata_from_logfile(logfile: Union[str, Path]) -> dict:
} }
def set_up_logging(loglevel="warning", filename="gol.log"): def set_up_logging(loglevel="warning", filename=None):
"""Set up logging. """Set up logging.
This function sets up the logging configuration for the script. This function sets up the logging configuration for the script.
......
...@@ -6,15 +6,15 @@ import os ...@@ -6,15 +6,15 @@ import os
import shutil import shutil
import subprocess import subprocess
from pathlib import Path from pathlib import Path
import logging
import pytest import pytest
mod = importlib.import_module("mpsd-software-environment") mod = importlib.import_module("mpsd-software-environment")
# set loglevel to debug - useful for understanding problems. # set loglevel to debug - useful for understanding problems.
# (if the tests pass, pytest doesn't show any output) # (if the tests pass, pytest doesn't show any output)
# mod.set_up_logging(loglevel="debug", filename="tests.log") mod.set_up_logging(loglevel="debug", filename="tests.log")
# logging.debug(f"We have set up logging from {__file__}") logging.debug(f"We have set up logging from {__file__}")
def create_mock_git_repository(target_directory, create_directory=True): def create_mock_git_repository(target_directory, create_directory=True):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment