settingsdata 告警整改

Signed-off-by: chenlang10 <18577333310@163.com>
This commit is contained in:
chenlang10 2023-06-06 09:37:07 +08:00
parent bb17a49f95
commit 9df7a7ea21
3 changed files with 7 additions and 4 deletions

3
.codecheck/check.yml Normal file
View File

@ -0,0 +1,3 @@
tool_params:
cmetrics:
exclude:applications/standard/settingsdata/hvigorfile.js|applications/standard/settingsdata/entry/hvigorfile.js

View File

@ -14,10 +14,10 @@
*/
import { Log } from '../Utils/Log';
import AbilityStage from '@ohos.app.ability.AbilityStage'
import AbilityStage from '@ohos.app.ability.AbilityStage';
export default class DataAbilityStage extends AbilityStage {
onCreate() :void{
onCreate() :void {
Log.info('DataAbilityStage onCreate');
globalThis.abilityContext = this.context;
}

View File

@ -44,7 +44,7 @@ export class Log {
* @param args Indicates the log parameters.
* @since 7
*/
static debug(format: string, ...args: string[]): void{
static debug(format: string, ...args: string[]): void {
if (Log.isLoggable(hiLog.LogLevel.DEBUG)) {
hiLog.debug(DOMAIN, TAG, format, args);
}
@ -99,7 +99,7 @@ export class Log {
* @param level log level
* @since 7
*/
private static isLoggable(level: number): boolean {
private static isLoggable(level: hiLog.LogLevel): boolean {
return hiLog.isLoggable(DOMAIN, TAG, level);
}
}