Resolve logging issue.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
const log = require("electron-log");
|
||||
const axios = require("axios");
|
||||
const { path } = require("path");
|
||||
const path = require("path");
|
||||
const { BrowserWindow } = require("electron");
|
||||
const { default: ipcTypes } = require("../../src/ipc.types.commonjs");
|
||||
const { promises: fsPromises } = require("fs");
|
||||
|
||||
// Function to write job object to logs subfolder
|
||||
async function writeJobToLogsFolder(job, fileName) {
|
||||
@@ -21,7 +22,8 @@ async function writeJobToLogsFolder(job, fileName) {
|
||||
const jobFilePath = path.join(jobLogsDir, `${fileName}.json`);
|
||||
await fsPromises.writeFile(jobFilePath, JSON.stringify(job, null, 2), 'utf8');
|
||||
|
||||
log.log(`Job object written to: ${jobFilePath}`);
|
||||
log.debug(`Job object written to: ${jobFilePath}`);
|
||||
console.log(`Job object written to: ${jobFilePath}`);
|
||||
return jobFilePath;
|
||||
} catch (error) {
|
||||
log.error('Error writing job object to logs folder:', error);
|
||||
|
||||
@@ -29,6 +29,7 @@ insert_permissions:
|
||||
- close_date
|
||||
- created_at
|
||||
- ded_amt
|
||||
- est_system
|
||||
- g_bett_amt
|
||||
- group
|
||||
- group_verified
|
||||
@@ -68,6 +69,7 @@ select_permissions:
|
||||
- close_date
|
||||
- created_at
|
||||
- ded_amt
|
||||
- est_system
|
||||
- g_bett_amt
|
||||
- group
|
||||
- group_verified
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
-- Could not auto-generate a down migration.
|
||||
-- Please write an appropriate down migration for the SQL below:
|
||||
-- alter table "public"."jobs" add column "est_system" text
|
||||
-- null;
|
||||
@@ -0,0 +1,2 @@
|
||||
alter table "public"."jobs" add column "est_system" text
|
||||
null;
|
||||
@@ -3,7 +3,7 @@
|
||||
"productName": "ImEX RPS",
|
||||
"author": "ImEX Systems Inc. <support@thinkimex.com>",
|
||||
"description": "ImEX RPS",
|
||||
"version": "1.4.2-alpha.9",
|
||||
"version": "1.4.2-alpha.10",
|
||||
"main": "electron/main.js",
|
||||
"homepage": "./",
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user