ceph-osd: log journal-creation failure with derr

Fixes: #2938
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Dan Mick <dan.mick@inktank.com>
This commit is contained in:
Dan Mick 2012-08-13 11:46:48 -07:00
parent 95ecab27cb
commit 294c25bb37

View File

@ -1164,7 +1164,7 @@ int FileStore::mkjournal()
if (ret < 0) {
ret = journal->create();
if (ret)
dout(0) << "mkjournal error creating journal on " << journalpath
derr << "mkjournal error creating journal on " << journalpath
<< ": " << cpp_strerror(ret) << dendl;
else
dout(0) << "mkjournal created journal on " << journalpath << dendl;