Skip to content

Commit

Permalink
log to stderr instead of stdout (to prevent mixing with TEI)
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Dec 3, 2021
1 parent 8984b1b commit 7b136c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,5 @@ including the extracted information from the MODS part of the METS.

Example:

mm2tei "https://digital.slub-dresden.de/oai/?verb=GetRecord&metadataPrefix=mets&identifier=oai:de:slub-dresden:db:id-453779263"
mm2tei "https://digital.slub-dresden.de/oai/?verb=GetRecord&metadataPrefix=mets&identifier=oai:de:slub-dresden:db:id-453779263" > tei.xml

3 changes: 2 additions & 1 deletion mets_mods2tei/scripts/mets_mods2tei.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import

import sys
import os
import logging
import click
Expand All @@ -19,7 +20,7 @@ def cli(mets, ocr, text_group, log_level):

#
# logging level
logging.basicConfig(level=logging.getLevelName(log_level))
logging.basicConfig(level=logging.getLevelName(log_level), stream=sys.stderr)

#
# interpret mets argument
Expand Down

0 comments on commit 7b136c8

Please sign in to comment.