* 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:
Husky
2025-07-08 22:01:23 -04:00
committed by GitHub
parent e4fbc7cd50
commit 2b70cea4e0
33 changed files with 481 additions and 171 deletions

View File

@ -1,5 +1,6 @@
import { AuthMec } from "~/prisma/client";
import { OIDCManager } from "./oidc";
import { logger } from "~/server/internal/logging";
class AuthManager {
private authProviders: {
@ -21,7 +22,7 @@ class AuthManager {
};
constructor() {
console.log("AuthManager initialized");
logger.info("AuthManager initialized");
}
async init() {
@ -31,9 +32,9 @@ class AuthManager {
if (!object) break;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(this.authProviders as any)[key] = object;
console.log(`enabled auth: ${key}`);
logger.info(`enabled auth: ${key}`);
} catch (e) {
console.warn(e);
logger.warn(e);
}
}