Use ERR level in error case.
Use INFO level at handling signal.
Change-Id: Ie19197df1a485aeaebe0100dc87dc6ad59da70b4
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
__set_backend_free(job->backend_slot);
if (WIFSIGNALED(status)) {
_send_fail_signal(job);
__set_backend_free(job->backend_slot);
if (WIFSIGNALED(status)) {
_send_fail_signal(job);
- DBG("backend[%s][%d] exit with signal[%d]", job->backend_type,
+ INFO("backend[%s][%d] exit with signal[%d]", job->backend_type,
pid, WTERMSIG(status));
} else if (WEXITSTATUS(status)) {
pid, WTERMSIG(status));
} else if (WEXITSTATUS(status)) {
- DBG("backend[%s][%d] exit with error", job->backend_type, pid);
+ INFO("backend[%s][%d] exit with error", job->backend_type, pid);
- DBG("backend[%s][%d] exit", job->backend_type, pid);
+ INFO("backend[%s][%d] exit", job->backend_type, pid);
ret_parse = g_shell_parse_argv(args, &argcp, &argvp, &gerr);
if (FALSE == ret_parse) {
ret_parse = g_shell_parse_argv(args, &argcp, &argvp, &gerr);
if (FALSE == ret_parse) {
- DBG("Failed to split args: %s", args);
- DBG("messsage: %s", gerr->message);
+ ERR("Failed to split args: %s", args);
+ ERR("messsage: %s", gerr->message);
user_ctx *ctx = (user_ctx *)user_data;
if (set_environement(ctx))
user_ctx *ctx = (user_ctx *)user_data;
if (set_environement(ctx))
- DBG("Failed to set env for the user : %d", ctx->uid);
+ ERR("Failed to set env for the user : %d", ctx->uid);
}
static int __fork_and_exec_with_args(char **argv, uid_t uid)
}
static int __fork_and_exec_with_args(char **argv, uid_t uid)
user_context = get_user_context(uid);
if (!user_context) {
user_context = get_user_context(uid);
if (!user_context) {
- DBG("Failed to getenv");
+ ERR("Failed to getenv");
r = _init_backend_queue();
if (r) {
r = _init_backend_queue();
if (r) {
- DBG("Queue Initialization Failed");
+ ERR("Queue Initialization Failed");
return -1;
}
r = __init_backend_info();
if (r) {
return -1;
}
r = __init_backend_info();
if (r) {
- DBG("backend info init failed");
+ ERR("backend info init failed");
size = strlen(pkgid) + strlen(timestr) + 2;
str_req_key = (char *)calloc(size, sizeof(char));
if (str_req_key == NULL) {
size = strlen(pkgid) + strlen(timestr) + 2;
str_req_key = (char *)calloc(size, sizeof(char));
if (str_req_key == NULL) {
return NULL;
}
snprintf(str_req_key, size, "%s_%s", pkgid, timestr);
return NULL;
}
snprintf(str_req_key, size, "%s_%s", pkgid, timestr);
pi = pkgmgr_installer_new();
if (!pi) {
pi = pkgmgr_installer_new();
if (!pi) {
- DBG("Failure in creating the pkgmgr_installer object");
+ ERR("Failure in creating the pkgmgr_installer object");
goto catch;
break;
default:
goto catch;
break;
default:
- DBG("Unsupported req_type[%d]", req_type);
+ ERR("Unsupported req_type[%d]", req_type);