style: Update console output format in restart script
This commit is contained in:
+7
-7
@@ -17,31 +17,31 @@ try:
|
||||
from utils.prompt_tracker import PromptTracker
|
||||
from utils.image_monitor import ImageMonitor
|
||||
|
||||
print("🔄 Restarting PromptManager Gallery System...")
|
||||
print("[RESTART] Restarting PromptManager Gallery System...")
|
||||
|
||||
# Initialize components
|
||||
db = PromptDatabase()
|
||||
tracker = PromptTracker(db)
|
||||
monitor = ImageMonitor(db, tracker)
|
||||
|
||||
print("✅ Components initialized successfully")
|
||||
print("[SUCCESS] Components initialized successfully")
|
||||
|
||||
# Test image monitoring directories
|
||||
status = monitor.get_status()
|
||||
print(f"📁 Monitoring status: {status}")
|
||||
print(f"[INFO] Monitoring status: {status}")
|
||||
|
||||
# Start monitoring
|
||||
monitor.start_monitoring()
|
||||
print("✅ Image monitoring restarted")
|
||||
print("[SUCCESS] Image monitoring restarted")
|
||||
|
||||
print("\n🎉 Gallery system restart completed!")
|
||||
print("\n[READY] Gallery system restart completed!")
|
||||
print("Generate some images now to test the automatic linking.")
|
||||
|
||||
except ImportError as e:
|
||||
print(f"❌ Import error: {e}")
|
||||
print(f"[ERROR] Import error: {e}")
|
||||
print("Make sure you're running this from the PromptManager directory")
|
||||
|
||||
except Exception as e:
|
||||
print(f"❌ Error: {e}")
|
||||
print(f"[ERROR] Error: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
Reference in New Issue
Block a user