reduce frontend log spam from debug messages
This commit is contained in:
parent
f42f9ee0b5
commit
87dc73d700
22 changed files with 32 additions and 32 deletions
|
|
@ -142,11 +142,11 @@ export class PreferencesManager {
|
|||
const v = JSON.parse(JSON.stringify(value)); // deep copy 兼 vueのプロキシ解除
|
||||
|
||||
if (deepEqual(this.s[key], v)) {
|
||||
if (_DEV_) console.log('(skip) prefer:commit', key, v);
|
||||
if (_DEV_) console.debug('(skip) prefer:commit', key, v);
|
||||
return;
|
||||
}
|
||||
|
||||
if (_DEV_) console.log('prefer:commit', key, v);
|
||||
if (_DEV_) console.debug('prefer:commit', key, v);
|
||||
|
||||
this.rewriteRawState(key, v);
|
||||
|
||||
|
|
@ -250,13 +250,13 @@ export class PreferencesManager {
|
|||
if (!deepEqual(cloudValue, record[1])) {
|
||||
this.rewriteRawState(key, cloudValue);
|
||||
record[1] = cloudValue;
|
||||
if (_DEV_) console.log('cloud fetched', key, cloudValue);
|
||||
if (_DEV_) console.debug('cloud fetched', key, cloudValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.save();
|
||||
if (_DEV_) console.log('cloud fetch completed');
|
||||
if (_DEV_) console.debug('cloud fetch completed');
|
||||
}
|
||||
|
||||
public static newProfile(): PreferencesProfile {
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ export async function restoreFromCloudBackup() {
|
|||
scope: ['client', 'preferences', 'backups'],
|
||||
});
|
||||
|
||||
if (_DEV_) console.log(keys);
|
||||
if (_DEV_) console.debug(keys);
|
||||
|
||||
if (keys.length === 0) {
|
||||
os.alert({
|
||||
|
|
@ -179,7 +179,7 @@ export async function restoreFromCloudBackup() {
|
|||
key: select.result,
|
||||
});
|
||||
|
||||
if (_DEV_) console.log(profile);
|
||||
if (_DEV_) console.debug(profile);
|
||||
|
||||
miLocalStorage.setItem('preferences', JSON.stringify(profile));
|
||||
miLocalStorage.setItem('hidePreferencesRestoreSuggestion', 'true');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue