Compare commits

..
2 Commits
Author SHA1 Message Date
github-actions[bot] 332540488d chore: release 1.15.1 2026-05-17 08:42:07 +00:00
ab52ef6c27 fix: logger.ts (#288)
* fix: release.yml

* fix: S3ChannelConfigSchema type port mismatch

* chore: package.json

* fix: refactoring logs and adding pino logger for production and dev.

* fix: trusted url error due to better auth update.

* fix: logger.ts

---------

Co-authored-by: charlesgauthereau <charles.gauthereau@soluce-technologies.com>
Co-authored-by: killianlarcher <killian.larcher@soluce-technologies.com>
2026-05-17 10:41:36 +02:00
3 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -33,5 +33,5 @@ keywords:
- web-ui
- agent
license: Apache-2.0
version: 1.15.0
version: 1.15.1
date-released: '2026-03-02'
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "portabase",
"version": "1.15.0",
"version": "1.15.1",
"private": true,
"scripts": {
"dev": "next dev --turbopack -p 8887",
+3 -5
View File
@@ -1,9 +1,8 @@
import pino, { type Logger } from "pino";
import {env} from "@/env.mjs";
const isProd = env.NODE_ENV === "production";
const isProd = process.env.NODE_ENV === "production";
const defaultLevel = isProd ? "info" : "debug";
const level = (env.LOG_LEVEL ?? defaultLevel) as pino.Level;
const level = (process.env.LOG_LEVEL ?? defaultLevel) as pino.Level;
function getLocalTimestamp() {
const date = new Date();
@@ -22,9 +21,8 @@ function getLocalTimestamp() {
}
export const logger: Logger = pino({
level,
level: level,
base: null,
...(isProd
? {
timestamp: getLocalTimestamp,