Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
memoriav
M
Memobase 2020
S
services
postprocessing
Media Converter
Commits
ec53f827
Unverified
Commit
ec53f827
authored
Dec 21, 2020
by
Sebastian Schüpbach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set log level to info
Signed-off-by:
Sebastian Schüpbach
<
sebastian.schuepbach@unibas.ch
>
parent
90da24b1
Pipeline
#19274
passed with stages
in 7 minutes and 16 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/main/resources/log4j2.xml
src/main/resources/log4j2.xml
+1
-1
src/main/scala/ch/memobase/Reporter.scala
src/main/scala/ch/memobase/Reporter.scala
+1
-1
No files found.
src/main/resources/log4j2.xml
View file @
ec53f827
...
...
@@ -17,7 +17,7 @@
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<Configuration
status=
"
debug
"
name=
"media-converter"
packages=
""
>
<Configuration
status=
"
info
"
name=
"media-converter"
packages=
""
>
<Appenders>
<Console
name=
"STDOUT"
target=
"SYSTEM_OUT"
>
<PatternLayout
pattern=
"[%-5level] [%c{1}] %m%n"
/>
...
...
src/main/scala/ch/memobase/Reporter.scala
View file @
ec53f827
...
...
@@ -40,7 +40,7 @@ class Reporter(props: Properties, reportingTopic: String) extends Logging {
def
send
(
report
:
models.ReportingObject
,
recordSetHeader
:
Header
,
institutionHeader
:
Header
)
:
JavaFuture
[
RecordMetadata
]
=
{
val
producerRecord
=
new
ProducerRecord
[
String
,
String
](
reportingTopic
,
0
,
report
.
id
,
report
.
toString
,
List
(
recordSetHeader
,
institutionHeader
).
asJava
)
logger
.
debug
(
s
"Sending report: $report"
)
logger
.
info
(
s
"Sending report: $report"
)
producer
.
send
(
producerRecord
)
}
...
...
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