Skip to content

Commit

Permalink
fix(logging): Remove unserializable methods from logger options
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivanpj committed Dec 24, 2023
1 parent 17ce885 commit f93f7ec
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/logging/src/utilities/get-transports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import {
formatDate,
formatDateTime
} from "@storm-stack/date-time";
import { isStormError } from "@storm-stack/errors";
import {
EMPTY_STRING,
isRuntimeServer,
isSetString,
titleCase
isSetString
} from "@storm-stack/utilities";
import chalk from "chalk";
import { tmpdir } from "os";
Expand Down Expand Up @@ -54,7 +52,7 @@ export const getTransports = (
level: config.logLevel,
messageKey: "msg",
errorKey: "error",
formatters: {
/*formatters: {
level: (label: string, number: number) => {
const level = titleCase(label);
Expand All @@ -73,7 +71,7 @@ export const getTransports = (
: isStormError(object.exception)
? { ...object, error: object.exception.print() }
: object
},
},*/
browser: {
disabled: getLogLevel(config.logLevel) === LogLevel.SILENT
}
Expand Down

0 comments on commit f93f7ec

Please sign in to comment.