aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/app.ts1
-rw-r--r--lib/utils.ts9
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/app.ts b/lib/app.ts
index fc86a3f2..9405b44b 100644
--- a/lib/app.ts
+++ b/lib/app.ts
@@ -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);
};
})();