aboutsummaryrefslogtreecommitdiffstats
path: root/lib/logging.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-31 09:29:04 -0700
committerAdam Soltys <[email protected]>2024-10-31 09:34:42 -0700
commitaa4cd39c943b67169def224e224bd07b815b70ec (patch)
tree2af857ac971705f4d20eb017864f0365d0b57ea6 /lib/logging.ts
parentbc9c04f6519f32d3b444d4df0b276eba960480a9 (diff)
downloadcoinos-server-aa4cd39c943b67169def224e224bd07b815b70ec.tar.gz
coinos-server-aa4cd39c943b67169def224e224bd07b815b70ec.zip
biome lint
Diffstat (limited to 'lib/logging.ts')
-rw-r--r--lib/logging.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/logging.ts b/lib/logging.ts
index 4913839a..aab110c2 100644
--- a/lib/logging.ts
+++ b/lib/logging.ts
@@ -1,12 +1,12 @@
import pino from "pino";
-export let l = (...msgs) => pino().info(msgs.join(" "));
-export let warn = (...msgs) => pino().warn(msgs.join(" "));
-export let err = (...msgs) => pino().error(msgs.join(" "));
+export const l = (...msgs) => pino().info(msgs.join(" "));
+export const warn = (...msgs) => pino().warn(msgs.join(" "));
+export const err = (...msgs) => pino().error(msgs.join(" "));
-export let line = () => {
- let stack = new Error().stack;
- let stackLine = stack.split("\n")[1];
- let match = stackLine.match(/at\s+(.*):(\d+):(\d+)/);
+export const line = () => {
+ const stack = new Error().stack;
+ const stackLine = stack.split("\n")[1];
+ const match = stackLine.match(/at\s+(.*):(\d+):(\d+)/);
return `${match[1]}:${match[2]}`;
};