mirror of
https://gitee.com/openharmony/applications_settings_data
synced 2024-11-27 00:40:37 +00:00
settingsdata 告警整改
Signed-off-by: chenlang10 <18577333310@163.com>
This commit is contained in:
parent
bb17a49f95
commit
9df7a7ea21
3
.codecheck/check.yml
Normal file
3
.codecheck/check.yml
Normal file
@ -0,0 +1,3 @@
|
||||
tool_params:
|
||||
cmetrics:
|
||||
exclude:applications/standard/settingsdata/hvigorfile.js|applications/standard/settingsdata/entry/hvigorfile.js
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user