Resolve logging issue.

This commit is contained in:
Patrick Fic
2025-09-02 13:30:09 -07:00
parent d673024135
commit b90fe00078
5 changed files with 13 additions and 3 deletions

View File

@@ -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);

View File

@@ -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

View File

@@ -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;

View File

@@ -0,0 +1,2 @@
alter table "public"."jobs" add column "est_system" text
null;

View File

@@ -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": {