Files
drop/utils/parseTaskLog.ts
Husky 2b70cea4e0 Logging (#131)
* ci: pull version from package.json on build

* fix: implicit any type

* feat: inital support for logger

* style: fix lint

* feat: move more logging over to pino

* fix: logging around company importing
2025-07-09 12:01:23 +10:00

11 lines
226 B
TypeScript

import type { TaskLog } from "~/server/internal/tasks";
export function parseTaskLog(logStr: string): typeof TaskLog.infer {
const log = JSON.parse(logStr);
return {
message: log.msg,
timestamp: log.time,
};
}