If the error value is -ENOENT(No such file or directory), the process
doesn't print the error logs.
Change-Id: I15548f966b4c28928f0f460c4be5a611df57503d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
fd = sd_journal_stream_fd(ident, LOG_INFO, 0);
if (fd < 0) {
- _W("sd_journal_stream_fd() is failed. error(%d)", fd);
+ if (fd != -ENOENT)
+ _W("sd_journal_stream_fd() is failed. error(%d)", fd);
return fd;
}
fd = sd_journal_stream_fd(ident, LOG_WARNING, 0);
if (fd < 0) {
- _W("sd_journal_stream_fd() is failed. error(%d)", fd);
+ if (fd != -ENOENT)
+ _W("sd_journal_stream_fd() is failed. error(%d)", fd);
return fd;
}