Skip to content

Metafix logs too much by default when log level is set to debug #735

@TobiasNx

Description

@TobiasNx

On "Debug"-Level Metafix seems to log too much, is this intended, normally flux-commands do not provide any internal logging:

"https://github.com/LibreCat/Catmandu/wiki/files/camel.usmarc"
| open-http(encoding="ascii")
| as-lines
| match(pattern="\\A(.{9}) ", replacement="$1a")
| decode-marc21
| fix("
	nothing()"
)
| encode-yaml
| print
;

--->

$ '/home/user/git/metafacture-core/metafacture-runner/build/install/metafacture-core/flux.sh' '/home/user/git/metafacture_workflows/usMarc/usmarc.flux'
DEBUG [main] [AbstractInternalAntlrParser] Parsing took: 15 ms
DEBUG [main] [AbstractCleaningLinker] beforeModelLinked took: 0ms
DEBUG [main] [AbstractCleaningLinker] doLinkModel took: 5ms
DEBUG [main] [AbstractCleaningLinker] afterModelLinked took: 0ms
DEBUG [main] [ResourceValidatorImpl] Syntax check OK! Resource: file:/tmp/metafix14978692744312842593.fix
DEBUG [main] [Metafix] Start record: fol05731351 
DEBUG [main] [Metafix] Putting 'status': 'c'
DEBUG [main] [Metafix] Putting 'type': 'a'
DEBUG [main] [Metafix] Putting 'bibliographicLevel': 'm'
DEBUG [main] [Metafix] Putting 'typeOfControl': ' '
DEBUG [main] [Metafix] Putting 'characterCodingScheme': 'a'
DEBUG [main] [Metafix] Putting 'encodingLevel': '4'
DEBUG [main] [Metafix] Putting 'catalogingForm': 'a'
DEBUG [main] [Metafix] Putting 'multipartLevel': ' '
DEBUG [main] [Metafix] Putting '001': 'fol05731351 '
DEBUG [main] [Metafix] Putting '003': 'IMchF'
DEBUG [main] [Metafix] Putting '005': '20000613133448.0'
DEBUG [main] [Metafix] Putting '008': '000107s2000    nyua          001 0 eng  '
DEBUG [main] [Metafix] Putting 'a': '   00020737 '
DEBUG [main] [Metafix] Putting 'a': '0471383147 (paper/cd-rom : alk. paper)'
DEBUG [main] [Metafix] Putting 'a': 'DLC'
DEBUG [main] [Metafix] Putting 'c': 'DLC'
DEBUG [main] [Metafix] Putting 'd': 'DLC'
DEBUG [main] [Metafix] Putting 'a': 'pcc'
DEBUG [main] [Metafix] Putting 'a': 'QA76.73.P22'
DEBUG [main] [Metafix] Putting 'b': 'M33 2000'
DEBUG [main] [Metafix] Putting 'a': '005.13/3'
DEBUG [main] [Metafix] Putting '2': '21'
DEBUG [main] [Metafix] Putting 'a': 'Martinsson, Tobias,'
DEBUG [main] [Metafix] Putting 'd': '1976-'
DEBUG [main] [Metafix] Putting 'a': 'ActivePerl with ASP and ADO /'
DEBUG [main] [Metafix] Putting 'c': 'Tobias Martinsson.'
DEBUG [main] [Metafix] Putting 'a': 'New York :'
DEBUG [main] [Metafix] Putting 'b': 'John Wiley & Sons,'
DEBUG [main] [Metafix] Putting 'c': '2000.'
DEBUG [main] [Metafix] Putting 'a': 'xxi, 289 p. :'
DEBUG [main] [Metafix] Putting 'b': 'ill. ;'
DEBUG [main] [Metafix] Putting 'c': '23 cm. +'
DEBUG [main] [Metafix] Putting 'e': '1 computer  laser disc (4 3/4 in.)'
DEBUG [main] [Metafix] Putting 'a': '"Wiley Computer Publishing."'
DEBUG [main] [Metafix] Putting 'a': 'Perl (Computer program language)'
DEBUG [main] [Metafix] Putting 'a': 'Active server pages.'
DEBUG [main] [Metafix] Putting 'a': 'ActiveX.'
DEBUG [main] [Metafix] End record, walking Fix: {leader={status=c, type=a, bibliographicLevel=m, typeOfControl= , characterCodingScheme=a, encodingLevel=4, catalogingForm=a, multipartLevel= }, 001=fol05731351 , 003=IMchF, 005=20000613133448.0, 008=000107s2000    nyua          001 0 eng  , 010  ={a=   00020737 }, 020  ={a=0471383147 (paper/cd-rom : alk. paper)}, 040  ={a=DLC, c=DLC, d=DLC}, 042  ={a=pcc}, 05000={a=QA76.73.P22, b=M33 2000}, 08200={a=005.13/3, 2=21}, 1001 ={a=Martinsson, Tobias,, d=1976-}, 24510={a=ActivePerl with ASP and ADO /, c=Tobias Martinsson.}, 260  ={a=New York :, b=John Wiley & Sons,, c=2000.}, 300  ={a=xxi, 289 p. :, b=ill. ;, c=23 cm. +, e=1 computer  laser disc (4 3/4 in.)}, 500  ={a="Wiley Computer Publishing."}, 650 0={a=Perl (Computer program language)}, 63000=[{a=Active server pages.}, {a=ActiveX.}]}
DEBUG [main] [Metafix] Sending results to org.metafacture.yaml.YamlEncoder@65629ac6
---
leader:
  status: "c"
  type: "a"
  bibliographicLevel: "m"
  typeOfControl: " "
  characterCodingScheme: "a"
  encodingLevel: "4"
  catalogingForm: "a"
  multipartLevel: " "
"001": "fol05731351 "
"003": "IMchF"
"005": "20000613133448.0"
"008": "000107s2000    nyua          001 0 eng  "
"010  ":
  a: "   00020737 "
"020  ":
  a: "0471383147 (paper/cd-rom : alk. paper)"
"040  ":
  a: "DLC"
  c: "DLC"
  d: "DLC"
"042  ":
  a: "pcc"
"05000":
  a: "QA76.73.P22"
  b: "M33 2000"
"08200":
  a: "005.13/3"
  "2": "21"
"1001 ":
  a: "Martinsson, Tobias,"
  d: "1976-"
"24510":
  a: "ActivePerl with ASP and ADO /"
  c: "Tobias Martinsson."
"260  ":
  a: "New York :"
  b: "John Wiley & Sons,"
  c: "2000."
"300  ":
  a: "xxi, 289 p. :"
  b: "ill. ;"
  c: "23 cm. +"
  e: "1 computer  laser disc (4 3/4 in.)"
"500  ":
  a: "\"Wiley Computer Publishing.\""
"650 0":
  a: "Perl (Computer program language)"
"63000":
  a: "Active server pages."
"63000":
  a: "ActiveX."

Originally posted by @TobiasNx in #733 (comment)

In contrast to other flux commands fix is logging a lot by default. This overcrowds the logs.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions