日志补充修改

Signed-off-by: Shenyx <shenyuxiang3@h-partners.com>
Change-Id: I6c7d77c4ea3d3fa53af5d50984bd96f9d249a84d
Signed-off-by: Shenyx <shenyuxiang3@h-partners.com>
This commit is contained in:
Shenyx 2024-09-12 18:56:23 +08:00
parent 9d5aeb72cf
commit 48e4ec65cb
3 changed files with 7 additions and 4 deletions

View File

@ -132,7 +132,7 @@ napi_value RequestEvent::Stop(napi_env env, napi_callback_info info)
napi_value RequestEvent::On(napi_env env, napi_callback_info info)
{
int32_t seq = RequestManager::GetInstance()->GetNextSeq();
REQUEST_HILOGI("Begin task on, seq: %{public}d", seq);
REQUEST_HILOGD("Begin task on, seq: %{public}d", seq);
JsParam jsParam;
ExceptionError err = ParseOnOffParameters(env, info, true, jsParam);
if (err.code != E_OK) {

View File

@ -66,7 +66,7 @@ impl TaskManager {
match RequestDb::get_instance().get_task_info(task_id) {
Some(info) if info.uid() == uid => Some(info),
_ => {
info!("TaskManger Show: no task found in database");
info!("TaskManger Show: no task found");
None
}
}
@ -159,7 +159,7 @@ pub(crate) fn query_mime_type(uid: u64, task_id: u32) -> String {
match RequestDb::get_instance().get_task_info(task_id) {
Some(info) if info.uid() == uid => info.mime_type(),
_ => {
info!("TaskManger QueryMimeType: no task found in database");
info!("TaskManger QueryMimeType: no task found");
"".into()
}
}

View File

@ -411,7 +411,10 @@ impl Scheduler {
}
if !config.satisfy_foreground(self.state_handler.top_uid()) {
info!("task {} started, waiting for app state", task_id);
info!(
"task {} started, waiting for app {} state",
task_id, config.common_data.uid
);
database.update_task_state(task_id, State::Waiting, Reason::AppBackgroundOrTerminate);
return Ok(false);
}