|
@@ -10,12 +10,12 @@ void SystemRunTest(const std::string& systemCmd)
|
|
|
std::string runStr(systemCmd);
|
|
|
if (SP::Module::Util::ShellExecute(runStr, succStr, errStr)) {
|
|
|
if (succStr.empty()) {
|
|
|
- Dbg("result empty");
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("result empty");
|
|
|
} else {
|
|
|
- Dbg("ret msg: %s", succStr.c_str());
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("ret msg: %s", succStr.c_str());
|
|
|
}
|
|
|
} else {
|
|
|
- Dbg("execute '%s' failed!", runStr.c_str());
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("execute '%s' failed!", runStr.c_str());
|
|
|
}
|
|
|
|
|
|
#else
|
|
@@ -37,18 +37,18 @@ void SystemRunTest(const std::string& systemCmd)
|
|
|
option.params = app;
|
|
|
|
|
|
if (ldRet == 0) {
|
|
|
- Dbg("get library path: %s", szldPath);
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("get library path: %s", szldPath);
|
|
|
toolkit_unsetenv("LD_LIBRARY_PATH");
|
|
|
} else {
|
|
|
- Dbg("GetEnv of LD_LIBRARY_PATH failed: %s", toolkit_strerror(ldRet));
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("GetEnv of LD_LIBRARY_PATH failed: %s", toolkit_strerror(ldRet));
|
|
|
}
|
|
|
|
|
|
const int res = process_spawn(&option, &process);
|
|
|
if (0 == res) {
|
|
|
- Dbg("execute {%s} suc pid: %d", app, process->pid);
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("execute {%s} suc pid: %d", app, process->pid);
|
|
|
FREE(process);
|
|
|
} else {
|
|
|
- Dbg("execute {%s} failed: %d", app, res);
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("execute {%s} failed: %d", app, res);
|
|
|
}
|
|
|
if (ldRet == 0) {
|
|
|
toolkit_setenv("LD_LIBRARY_PATH", szldPath);
|