@jcbuisson/express-x 1.8.2 → 1.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/server.mjs +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcbuisson/express-x",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.mjs",
package/src/server.mjs CHANGED
@@ -384,7 +384,8 @@ export function expressX(prisma, config) {
384
384
  * Emit in return a 'client-response' message
385
385
  */
386
386
  socket.on('client-request', async ({ uid, name, action, args }) => {
387
- app.log('verbose', `client-request ${connection.id} ${uid} ${name} ${action} ${JSON.stringify(args)}`)
387
+ const trimmedArgs = args ? JSON.stringify(args).slice(0, 300) : ''
388
+ app.log('verbose', `client-request ${connection.id} ${uid} ${name} ${action} ${trimmedArgs}`)
388
389
  if (name in services) {
389
390
  const service = services[name]
390
391
  try {