Even if stdout fd is already redirected to dlog fd, calling dlog_connted_to()
is needed to set the log tag. This patch removes calling dlog_is_log_fd().
Change-Id: If9fe1f28a68cfa62f02927945136f67581cd0f17
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
int ret;
int fd;
- if (dlog_is_log_fd(STDOUT_FILENO)) {
- _W("STDOUT_FILENO is using dlog fd");
- return 0;
- }
-
ret = dlog_connect_fd(LOG_ID_APPS, STDOUT_FILENO, "STDOUT", DLOG_WARN);
if (ret == 0) {
_W("STDOUT_FILENO redirection is successful");
int ret;
int fd;
- if (dlog_is_log_fd(STDERR_FILENO)) {
- _W("STDERR_FILENO is using dlog fd");
- return 0;
- }
-
ret = dlog_connect_fd(LOG_ID_APPS, STDERR_FILENO, "STDERR", DLOG_ERROR);
if (ret == 0) {
_W("STDERR_FILENO redirection is successful");