Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
2b3f2125
Commit
2b3f2125
authored
Jun 29, 2018
by
Eric Cano
Browse files
Using exception message instead of stack trace in EOS error reporting.
parent
5a2aba11
Changes
2
Hide whitespace changes
Inline
Side-by-side
tapeserver/castor/tape/tapeserver/daemon/MigrationReportPacker.cpp
View file @
2b3f2125
...
...
@@ -70,7 +70,7 @@ std::unique_ptr<cta::ArchiveJob> successfulArchiveJob, cta::log::LogContext & lc
void
MigrationReportPacker
::
reportFailedJob
(
std
::
unique_ptr
<
cta
::
ArchiveJob
>
failedArchiveJob
,
const
cta
::
exception
::
Exception
&
ex
,
cta
::
log
::
LogContext
&
lc
){
std
::
string
failureLog
=
cta
::
utils
::
getCurrentLocalTime
()
+
" "
+
cta
::
utils
::
getShortHostname
()
+
" "
+
ex
.
what
();
" "
+
ex
.
getMessageValue
();
std
::
unique_ptr
<
Report
>
rep
(
new
ReportError
(
std
::
move
(
failedArchiveJob
),
failureLog
));
cta
::
log
::
ScopedParamContainer
params
(
lc
);
params
.
add
(
"type"
,
"ReportError"
);
...
...
tapeserver/castor/tape/tapeserver/daemon/RecallReportPacker.cpp
View file @
2b3f2125
...
...
@@ -72,7 +72,7 @@ void RecallReportPacker::reportCompletedJob(std::unique_ptr<cta::RetrieveJob> su
//------------------------------------------------------------------------------
void
RecallReportPacker
::
reportFailedJob
(
std
::
unique_ptr
<
cta
::
RetrieveJob
>
failedRetrieveJob
,
const
cta
::
exception
::
Exception
&
ex
){
std
::
string
failureLog
=
cta
::
utils
::
getCurrentLocalTime
()
+
" "
+
cta
::
utils
::
getShortHostname
()
+
" "
+
ex
.
what
();
" "
+
ex
.
getMessageValue
();
std
::
unique_ptr
<
Report
>
rep
(
new
ReportError
(
std
::
move
(
failedRetrieveJob
),
failureLog
));
cta
::
threading
::
MutexLocker
ml
(
m_producterProtection
);
m_fifo
.
push
(
rep
.
release
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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