mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-21 15:32:53 +10:00
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
This commit is contained in:
@@ -43,9 +43,9 @@ export class ObjectTransactionalHandler {
|
||||
|
||||
for (const [id, data] of transaction) {
|
||||
if (typeof data === "string") {
|
||||
context?.log(`Importing object from "${data}"`);
|
||||
context?.logger.info(`Importing object from "${data}"`);
|
||||
} else {
|
||||
context?.log(`Importing raw object...`);
|
||||
context?.logger.info(`Importing raw object...`);
|
||||
}
|
||||
await objectHandler.createFromSource(
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user