Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
postprocessing
Media Metadata Indexer
Commits
88942c0f
Unverified
Commit
88942c0f
authored
Nov 17, 2020
by
Sebastian Schüpbach
Browse files
rename reporting statuses
Signed-off-by:
Sebastian Schüpbach
<
sebastian.schuepbach@unibas.ch
>
parent
77247631
Changes
1
Hide whitespace changes
Inline
Side-by-side
mediametadatatodb_app/resources/MediametadataToDB.py
View file @
88942c0f
...
...
@@ -304,7 +304,7 @@ class MediametadataToDB:
logging
.
info
(
f
'Ignoring record
{
record_id
}
since'
+
f
' access of digitalObject is
{
access_status
}
'
)
reporter
.
send_message
(
record_id
,
"
SUCCESS
"
,
"
IGNORE
"
,
"Ignoring record since access of "
+
"digitalObject is unavailable"
)
if
recordNo
%
100
==
0
:
...
...
@@ -327,7 +327,7 @@ class MediametadataToDB:
status
=
'It was not possible to consume the Kafka messages.'
+
'
\n
'
+
str
(
ex
)
logging
.
error
(
status
)
for
record_value
in
record_values_for_db
:
reporter
.
send_message
(
record_value
[
'sig'
],
"FA
ILURE
"
,
f
"Indexing failed:
{
ex
}
"
)
reporter
.
send_message
(
record_value
[
'sig'
],
"FA
TAL
"
,
f
"Indexing failed:
{
ex
}
"
)
def
__init__
(
self
):
# TODO : maybe take that to a configuration (development vs pod running in
...
...
Write
Preview
Supports
Markdown
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