#include <stddef.h>
#include <dpl/file_input.h>
#include <dpl/binary_queue.h>
-#include <dpl/log/log.h>
+#include <dpl/log/wrt_log.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
// Save new descriptor
m_fd = fd;
- LogPedantic("Opened file: " << fileName);
+ WrtLogD("Opened file: %s", fileName.c_str());
}
void FileInput::Close()
m_fd = -1;
- LogPedantic("Closed file");
+ WrtLogD("Closed file");
}
BinaryQueueAutoPtr FileInput::Read(size_t size)
throw std::bad_alloc();
}
- LogPedantic("Trying to read " << bytesToRead << " bytes");
+ WrtLogD("Trying to read %u bytes", bytesToRead);
ssize_t result = TEMP_FAILURE_RETRY(read(m_fd, buffer, bytesToRead));
- LogPedantic("Read " << result << " bytes from file");
+ WrtLogD("Read %u bytes from file", result);
if (result > 0) {
// Succedded to read socket data