mirror of
https://gitee.com/openharmony/request_request
synced 2024-11-23 15:00:48 +00:00
日志补充修改
Signed-off-by: Shenyx <shenyuxiang3@h-partners.com> Change-Id: I6c7d77c4ea3d3fa53af5d50984bd96f9d249a84d Signed-off-by: Shenyx <shenyuxiang3@h-partners.com>
This commit is contained in:
parent
9d5aeb72cf
commit
48e4ec65cb
@ -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) {
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user