replace INFO log level

This commit is contained in:
Valient Gough 2016-04-25 21:18:08 -07:00
parent 4326eed2ec
commit 05a749d32f
No known key found for this signature in database
GPG Key ID: B515DCEB95967051
4 changed files with 15 additions and 14 deletions

View File

@ -139,14 +139,14 @@ int FileNode::mknod(mode_t mode, dev_t rdev, uid_t uid, gid_t gid) {
if (uid != 0) {
olduid = setfsuid(uid);
if (olduid == -1) {
RLOG(INFO) << "setfsuid error: " << strerror(errno);
RLOG(DEBUG) << "setfsuid error: " << strerror(errno);
return -EPERM;
}
}
if (gid != 0) {
oldgid = setfsgid(gid);
if (oldgid == -1) {
RLOG(INFO) << "setfsgid error: " << strerror(errno);
RLOG(DEBUG) << "setfsgid error: " << strerror(errno);
return -EPERM;
}
}
@ -209,7 +209,7 @@ ssize_t FileNode::read(off_t offset, unsigned char *data, ssize_t size) const {
}
bool FileNode::write(off_t offset, unsigned char *data, ssize_t size) {
RLOG(INFO) << "FileNode::write offset " << offset << ", data size " << size;
VLOG(1) << "FileNode::write offset " << offset << ", data size " << size;
IORequest req;
req.offset = offset;

View File

@ -1637,7 +1637,7 @@ int remountFS(EncFS_Context *ctx) {
ctx->setRoot(rootInfo->root);
return 0;
} else {
RLOG(INFO) << "Remount failed";
RLOG(WARNING) << "Remount failed";
return -EACCES;
}
}

View File

@ -120,7 +120,7 @@ int RawFileIO::open(int flags) {
result = fd = newFd;
} else {
result = -errno;
RLOG(INFO) << "::open error: " << strerror(errno);
RLOG(DEBUG) << "::open error: " << strerror(errno);
}
}
@ -132,7 +132,7 @@ int RawFileIO::getAttr(struct stat *stbuf) const {
int eno = errno;
if (res < 0) {
RLOG(INFO) << "getAttr error on " << name << ": " << strerror(eno);
RLOG(DEBUG) << "getAttr error on " << name << ": " << strerror(eno);
}
return (res < 0) ? -eno : 0;
@ -167,8 +167,8 @@ ssize_t RawFileIO::read(const IORequest &req) const {
ssize_t readSize = pread(fd, req.data, req.dataLen, req.offset);
if (readSize < 0) {
RLOG(INFO) << "read failed at offset " << req.offset << " for "
<< req.dataLen << " bytes: " << strerror(errno);
RLOG(WARNING) << "read failed at offset " << req.offset << " for "
<< req.dataLen << " bytes: " << strerror(errno);
}
return readSize;
@ -188,8 +188,8 @@ bool RawFileIO::write(const IORequest &req) {
if (writeSize < 0) {
knownSize = false;
RLOG(INFO) << "write failed at offset " << offset << " for " << bytes
<< " bytes: " << strerror(errno);
RLOG(WARNING) << "write failed at offset " << offset << " for " << bytes
<< " bytes: " << strerror(errno);
return false;
}
@ -227,8 +227,8 @@ int RawFileIO::truncate(off_t size) {
if (res < 0) {
int eno = errno;
RLOG(INFO) << "truncate failed for " << name << " (" << fd << ") size "
<< size << ", error " << strerror(eno);
RLOG(WARNING) << "truncate failed for " << name << " (" << fd << ") size "
<< size << ", error " << strerror(eno);
res = -eno;
knownSize = false;
} else {

View File

@ -140,8 +140,9 @@ static int withFileNode(const char *opName, const char *path,
}
res = op(fnode.get());
LOG_IF(res < 0, INFO) << "op: " << opName << " error: " << strerror(-res);
if (res < 0) {
RLOG(DEBUG) << "op: " << opName << " error: " << strerror(-res);
}
} catch (encfs::Error &err) {
RLOG(ERROR) << "withFileNode: error caught in " << opName << ": "
<< err.what();