Added additional time logging.
This commit is contained in:
@@ -9,6 +9,7 @@ import { PathToRoFolder } from "../util/pathGenerators";
|
||||
import { FolderPaths } from "../util/serverInit";
|
||||
|
||||
export async function JobsListMedia(req: Request, res: Response) {
|
||||
console.time("JobsListMedia");
|
||||
const jobid: string = (req.body.jobid || "").trim();
|
||||
await fs.ensureDir(PathToRoFolder(jobid));
|
||||
logger.debug("Listing media for job: " + PathToRoFolder(jobid));
|
||||
@@ -72,7 +73,7 @@ export async function JobsListMedia(req: Request, res: Response) {
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
console.timeEnd("JobsListMedia");
|
||||
res.json(ret);
|
||||
} catch (error) {
|
||||
logger.error("Error listing job media.", { jobid, error });
|
||||
|
||||
Reference in New Issue
Block a user