From: Carl Worth Date: Thu, 8 Dec 2022 16:35:36 +0000 (-0800) Subject: Log the user name when generating an image X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=56ab5e6ac0392a9f4d366c98e2645dc90e232ffa;hp=d84f35c5cd6f88d299bb35565b587b6acd4fde0a;p=zombocom-ai Log the user name when generating an image So I can more easily track that all the boys are staying involved --- diff --git a/index.js b/index.js index 55e1798..20e79d0 100644 --- a/index.js +++ b/index.js @@ -99,7 +99,7 @@ io.on('connection', (socket) => { // Generate an image when requested socket.on('generate', (request) => { - console.log(`Generating image with code=${request['code']} and prompt=${request['prompt']}`); + console.log(`Generating image for ${socket.request.session.name} with code=${request['code']} and prompt=${request['prompt']}`); async function generate_image(code, prompt) { var promise; if (code) {