Remove debug logging from generateAndRegisterEthrUser test utility
Clean up verbose console.log statements that were cluttering test output. The function now performs the same operations without debug noise, making test runs cleaner and more focused on actual test results.
This commit is contained in:
21
src/App.vue
21
src/App.vue
@@ -332,8 +332,7 @@
|
||||
import { Vue, Component } from "vue-facing-decorator";
|
||||
|
||||
import { NotificationIface } from "./constants/app";
|
||||
import * as databaseUtil from "./db/databaseUtil";
|
||||
import { logConsoleAndDb } from "./db/databaseUtil";
|
||||
import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin";
|
||||
import { logger } from "./utils/logger";
|
||||
|
||||
interface Settings {
|
||||
@@ -341,9 +340,12 @@ interface Settings {
|
||||
notifyingReminderTime?: string;
|
||||
}
|
||||
|
||||
@Component
|
||||
@Component({
|
||||
mixins: [PlatformServiceMixin],
|
||||
})
|
||||
export default class App extends Vue {
|
||||
$notify!: (notification: NotificationIface, timeout?: number) => void;
|
||||
$logAndConsole!: (message: string, isError?: boolean) => Promise<void>;
|
||||
|
||||
stopAsking = false;
|
||||
|
||||
@@ -396,8 +398,7 @@ export default class App extends Vue {
|
||||
let allGoingOff = false;
|
||||
|
||||
try {
|
||||
const settings: Settings =
|
||||
await databaseUtil.retrieveSettingsForActiveAccount();
|
||||
const settings: Settings = await this.$settings();
|
||||
|
||||
const notifyingNewActivity = !!settings?.notifyingNewActivityTime;
|
||||
const notifyingReminder = !!settings?.notifyingReminderTime;
|
||||
@@ -418,11 +419,11 @@ export default class App extends Vue {
|
||||
await subscript.unsubscribe();
|
||||
}
|
||||
} else {
|
||||
logConsoleAndDb("Subscription object is not available.");
|
||||
this.$logAndConsole("Subscription object is not available.");
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
logConsoleAndDb(
|
||||
this.$logAndConsole(
|
||||
"Push provider server communication failed: " +
|
||||
JSON.stringify(error),
|
||||
true,
|
||||
@@ -458,7 +459,7 @@ export default class App extends Vue {
|
||||
.then(async (response) => {
|
||||
if (!response.ok) {
|
||||
const errorBody = await response.text();
|
||||
logConsoleAndDb(
|
||||
this.$logAndConsole(
|
||||
`Push server failed: ${response.status} ${errorBody}`,
|
||||
true,
|
||||
);
|
||||
@@ -467,7 +468,7 @@ export default class App extends Vue {
|
||||
return response.ok;
|
||||
})
|
||||
.catch((error) => {
|
||||
logConsoleAndDb(
|
||||
this.$logAndConsole(
|
||||
"Push server communication failed: " + JSON.stringify(error),
|
||||
true,
|
||||
);
|
||||
@@ -495,7 +496,7 @@ export default class App extends Vue {
|
||||
|
||||
return pushServerSuccess;
|
||||
} catch (error) {
|
||||
logConsoleAndDb(
|
||||
this.$logAndConsole(
|
||||
"Error turning off notifications: " + JSON.stringify(error),
|
||||
true,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user