summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPA4WDH2025-07-27 16:09:41 +0200
committerPA4WDH2025-07-27 16:09:41 +0200
commitf2601f555e196955180d2c9920de3288be855324 (patch)
tree2bfc21f7d062574079ed3666e37aaf4636c789b6
parentUpdate openTab javscript to use evt.target (diff)
downloadqemu.py-f2601f555e196955180d2c9920de3288be855324.tar.gz
qemu.py-f2601f555e196955180d2c9920de3288be855324.tar.bz2
qemu.py-f2601f555e196955180d2c9920de3288be855324.zip
Improve logging of reference image
-rw-r--r--qemu.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/qemu.py b/qemu.py
index 8cb3583..9aeb1ae 100644
--- a/qemu.py
+++ b/qemu.py
@@ -237,6 +237,9 @@ div.active {
if "timestamp" in tabdata[tab]:
with htmltag("p"):
htmltext(self.unixtime2str(tabdata[tab]["timestamp"]))
+ if "text" in tabdata[tab]:
+ with htmltag("p"):
+ htmltext(tabdata[tab]["text"])
if "image" in tabdata[tab]:
inline_image=self.image2src(tabdata[tab]["image"])
tabdata[tab]["image"].close()
@@ -672,7 +675,7 @@ class vm:
imagelog=[]
refimage=Image.open(filename)
now=datetime.now().timestamp()
- imagelog.append({"name": filename, "timestamp": now, "image": refimage.copy()})
+ imagelog.append({"name": "Reference", "text": filename, "image": refimage.copy()})
refimage.close()
check=0