diff --git a/services/native/src/thermal_action/action/action_thermal_level.cpp b/services/native/src/thermal_action/action/action_thermal_level.cpp index 5318e64341d38f835de8352d7bc9e06892bca6bf..1f7689763ce6c352a2997e2526c1c948cdafbb23 100644 --- a/services/native/src/thermal_action/action/action_thermal_level.cpp +++ b/services/native/src/thermal_action/action/action_thermal_level.cpp @@ -88,10 +88,11 @@ void ActionThermalLevel::ExecuteInner() int32_t value = GetActionValue(); if (value != lastValue_) { + THERMAL_HILOGI(COMP_SVC, "thermal level changed, new lev: %{public}d, old lev: %{public}d", value, lastValue_); + lastValue_ = value; LevelRequest(value); WriteActionTriggeredHiSysEvent(enableEvent_, actionName_, value); tms->GetObserver()->SetDecisionValue(actionName_, std::to_string(value)); - lastValue_ = value; THERMAL_HILOGD(COMP_SVC, "action execute: {%{public}s = %{public}u}", actionName_.c_str(), lastValue_); } valueList_.clear(); @@ -176,8 +177,6 @@ void ActionThermalLevel::ThermalLevelCallbackDeathRecipient::OnRemoteDied(const void ActionThermalLevel::NotifyThermalLevelChanged(int32_t level) { - THERMAL_HILOGI(COMP_SVC, "thermal level changed, new lev: %{public}d, old lev: %{public}d", level, lastValue_); - // Send Notification event PublishLevelChangedEvents(ThermalCommonEventCode::CODE_THERMAL_LEVEL_CHANGED, level); diff --git a/services/native/src/thermal_service.cpp b/services/native/src/thermal_service.cpp index a7438120f4ef9430aad9bc9f9fbbf32cd14693af..eeec64bb7828bf6bb0722ff59172a54c78ec79ad 100644 --- a/services/native/src/thermal_service.cpp +++ b/services/native/src/thermal_service.cpp @@ -244,7 +244,7 @@ bool ThermalService::InitConfigFile() THERMAL_HILOGD(COMP_SVC, "match pliocy config file"); return true; } - THERMAL_HILOGE(COMP_SVC, "pliocy config file config init err"); + THERMAL_HILOGE(COMP_SVC, "policy config file config init err"); return false; } @@ -257,6 +257,7 @@ bool ThermalService::InitConfigFile() THERMAL_HILOGD(COMP_SVC, "thermal service config init suc:SYSTEM_CONFIG"); return true; } + THERMAL_HILOGE(COMP_SVC, "policy config file config init fail"); return false; }