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
dCache
cta
Commits
abda487c
Commit
abda487c
authored
Jul 10, 2014
by
Eric Cano
Browse files
Logs improvements. (Including removal of per memory block logs).
parent
55f384d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
castor/legacymsg/VmgrProxyTcpIp.cpp
View file @
abda487c
...
...
@@ -157,7 +157,7 @@ void castor::legacymsg::VmgrProxyTcpIp::tapeMountedForRead(const std::string &vi
}
catch
(
castor
::
exception
::
Exception
&
ne
)
{
castor
::
exception
::
Exception
ex
;
ex
.
getMessage
()
<<
"Failed to notify the VMGR that the tape "
<<
vid
<<
" was mounted: "
<<
ne
.
getMessage
().
str
();
" was mounted
for READ by jid "
<<
jid
<<
"
: "
<<
ne
.
getMessage
().
str
();
throw
ex
;
}
}
...
...
@@ -179,7 +179,7 @@ void castor::legacymsg::VmgrProxyTcpIp::tapeMountedForWrite(const std::string &v
}
catch
(
castor
::
exception
::
Exception
&
ne
)
{
castor
::
exception
::
Exception
ex
;
ex
.
getMessage
()
<<
"Failed to notify the VMGR that the tape "
<<
vid
<<
" was mounted: "
<<
ne
.
getMessage
().
str
();
" was mounted
for WRITE by jid "
<<
jid
<<
"
: "
<<
ne
.
getMessage
().
str
();
throw
ex
;
}
}
...
...
castor/tape/tapeserver/daemon/RecallMemoryManager.cpp
View file @
abda487c
...
...
@@ -38,9 +38,13 @@ RecallMemoryManager::RecallMemoryManager(const size_t numberOfBlocks, const size
for
(
size_t
i
=
0
;
i
<
numberOfBlocks
;
i
++
)
{
m_freeBlocks
.
push
(
new
MemBlock
(
i
,
blockSize
));
m_lc
.
pushOrReplace
(
log
::
Param
(
"blockId"
,
i
));
m_lc
.
log
(
LOG_DEBUG
,
"RecallMemoryManager created a block"
);
//
m_lc.pushOrReplace(log::Param("blockId", i));
//
m_lc.log(LOG_DEBUG, "RecallMemoryManager created a block");
}
log
::
ScopedParamContainer
params
(
m_lc
);
params
.
add
(
"blockCount"
,
numberOfBlocks
)
.
add
(
"blockSize"
,
blockSize
)
.
add
(
"totalSize"
,
numberOfBlocks
*
blockSize
);
m_lc
.
log
(
LOG_INFO
,
"RecallMemoryManager: all blocks have been created"
);
}
...
...
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