]> git.cworth.org Git - zombocom-ai/commitdiff
Log the user name when generating an image
authorCarl Worth <cworth@cworth.org>
Thu, 8 Dec 2022 16:35:36 +0000 (08:35 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 8 Dec 2022 16:35:36 +0000 (08:35 -0800)
So I can more easily track that all the boys are staying involved

index.js

index 55e17982786b27ad39ce47568dfe13cf18a39e02..20e79d04e52e9207cebc1c0c93ac05dfb95e3663 100644 (file)
--- 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) {