Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
libraries
Normalizer Service Configuration
Commits
965e01f3
Commit
965e01f3
authored
Feb 09, 2021
by
Jonas Waeber
Browse files
Improve logging for creation relation transform.
parent
1d564939
Pipeline
#21454
passed with stage
in 2 minutes and 15 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/kotlin/ch/memobase/transform/ExtractCreationRelationNameTransform.kt
View file @
965e01f3
...
...
@@ -48,7 +48,7 @@ class ExtractCreationRelationNameTransform(private val regex: Regex, private val
}
}
}
else
{
log
.
warn
(
"Pattern ${regex.pattern} did not match on value $fullValue
in p
erson
$target
."
)
log
.
debug
(
"Pattern
'
${regex.pattern}
'
did not match on value $fullValue
of P
erson."
)
fullValue
}
Pair
(
targetValue
,
value
.
language
)
...
...
src/test/kotlin/ch/memobase/LocalTestRun.kt
View file @
965e01f3
...
...
@@ -97,6 +97,7 @@ class LocalTestRun {
val
mappingFile
=
"/config/localTransforms.yml"
val
global
=
GlobalTransformsLoader
(
"src/test/resources/global/transforms.yml"
)
val
local
=
LocalTransformsLoader
(
File
(
folder
+
mappingFile
).
readBytes
())
local
.
parse
(
"test-key"
)
val
transformConfigs
=
local
.
get
()
+
global
.
get
()
File
(
inputFolder
)
.
walk
(
FileWalkDirection
.
TOP_DOWN
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment