mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
332540488d | ||
|
|
ab52ef6c27 |
+1
-1
@@ -33,5 +33,5 @@ keywords:
|
|||||||
- web-ui
|
- web-ui
|
||||||
- agent
|
- agent
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
version: 1.15.0
|
version: 1.15.1
|
||||||
date-released: '2026-03-02'
|
date-released: '2026-03-02'
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "portabase",
|
"name": "portabase",
|
||||||
"version": "1.15.0",
|
"version": "1.15.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev --turbopack -p 8887",
|
"dev": "next dev --turbopack -p 8887",
|
||||||
|
|||||||
+3
-5
@@ -1,9 +1,8 @@
|
|||||||
import pino, { type Logger } from "pino";
|
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 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() {
|
function getLocalTimestamp() {
|
||||||
const date = new Date();
|
const date = new Date();
|
||||||
@@ -22,9 +21,8 @@ function getLocalTimestamp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const logger: Logger = pino({
|
export const logger: Logger = pino({
|
||||||
level,
|
level: level,
|
||||||
base: null,
|
base: null,
|
||||||
|
|
||||||
...(isProd
|
...(isProd
|
||||||
? {
|
? {
|
||||||
timestamp: getLocalTimestamp,
|
timestamp: getLocalTimestamp,
|
||||||
|
|||||||
Reference in New Issue
Block a user