Fix logger.warn calls.
This commit is contained in:
@@ -208,7 +208,7 @@ app.get("/jobs/analysis", ValidateImsToken, async (req, res) => {
|
||||
const analysis = await analyzeJobsDirectory();
|
||||
res.json(analysis);
|
||||
} catch (error) {
|
||||
logger.error("Failed to analyze jobs directory:", error);
|
||||
logger.error("Failed to analyze jobs directory:", JSON.stringify(error, null, 2));
|
||||
const errorMessage = error instanceof Error ? error.message : "Unknown error";
|
||||
res.status(500).json({ success: false, message: "Jobs analysis failed", error: errorMessage });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user