Improved logging & add graphicsmagick to docker file.
This commit is contained in:
@@ -11,7 +11,7 @@ import { FolderPaths } from "../util/serverInit";
|
||||
export async function JobsListMedia(req: Request, res: Response) {
|
||||
const jobid: string = (req.body.jobid || "").trim();
|
||||
await fs.ensureDir(PathToRoFolder(jobid));
|
||||
logger.debug("Listing media for job.", PathToRoFolder(jobid));
|
||||
logger.debug("Listing media for job: " + PathToRoFolder(jobid));
|
||||
let ret: MediaFile[];
|
||||
try {
|
||||
if (req.files) {
|
||||
@@ -75,7 +75,7 @@ export async function JobsListMedia(req: Request, res: Response) {
|
||||
|
||||
res.json(ret);
|
||||
} catch (error) {
|
||||
logger.error("Error listing job media.", jobid, error);
|
||||
logger.error("Error listing job media.", { jobid, error });
|
||||
res.status(500).json(error);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user