diff options
| author | Adam Soltys <[email protected]> | 2024-10-11 08:49:47 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-11 08:49:47 -0700 |
| commit | b6f56cec418247a3cfb71f2d9f44e9c843354829 (patch) | |
| tree | 65f487ff0c6ff17220417e994c3cf933d2b51297 /lib | |
| parent | c8adb5633c75d1767f54bac9e9d025d6efa2eb87 (diff) | |
| download | coinos-server-b6f56cec418247a3cfb71f2d9f44e9c843354829.tar.gz coinos-server-b6f56cec418247a3cfb71f2d9f44e9c843354829.zip | |
use cached event for tagsonly
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/app.ts | 1 | ||||
| -rw-r--r-- | lib/utils.ts | 9 |
2 files changed, 6 insertions, 4 deletions
@@ -16,6 +16,7 @@ import { jwtStrategy } from "$lib/auth"; const app = fastify({ logger: pino(), disableRequestLogging: true, + // disableRequestLogging: false, maxParamLength: 500, }); diff --git a/lib/utils.ts b/lib/utils.ts index 7bcb4a3d..b7f55ff1 100644 --- a/lib/utils.ts +++ b/lib/utils.ts @@ -170,12 +170,13 @@ export function formatReceipt(items, currency) { export let t = ({ language = "en" }) => locales[language]; export let time = (() => { - let count = 0, started = false; - return () => { + let count = 0, + started = false; + return (s = "") => { if (!started) { - console.time(''); + console.time(""); started = true; } - console.timeLog('', ++count); + console.timeLog("", ++count, s); }; })(); |
