From: Carl Worth <cworth@cworth.org>
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;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) {