@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.
- package/package.json +1 -1
- package/src/server.mjs +2 -1
package/package.json
CHANGED
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
|
-
|
|
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 {
|