The callers report errors and pass up errors, so do not spam stderr with
this. Fixes the confusion that sparked #2595.
Signed-off-by: Sage Weil <sage@inktank.com>
fd = TEMP_FAILURE_RETRY(::open(fn.c_str(), flags, 0644));
if (fd < 0) {
int err = errno;
- derr << "FileJournal::_open: unable to open journal: open() failed: "
- << cpp_strerror(err) << dendl;
+ dout(2) << "FileJournal::_open: unable to open journal: open() failed: "
+ << cpp_strerror(err) << dendl;
return -err;
}
if (ret < 0) {
ret = journal->create();
if (ret)
- dout(0) << "mkjournal error creating journal on " << journalpath << dendl;
+ dout(0) << "mkjournal error creating journal on " << journalpath
+ << ": " << cpp_strerror(ret) << dendl;
else
dout(0) << "mkjournal created journal on " << journalpath << dendl;
}