acecalisto3 commited on
Commit
0ab8f01
·
verified ·
1 Parent(s): e0f3044

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -337,13 +337,15 @@ class WebDesignValidator:
337
  return recommendations
338
 
339
  if __name__ == "__main__":
340
- # Example data to test JSON serialization
341
- test_results = {
342
- "timestamp": datetime.now(),
343
- "status": "success"
344
- }
345
-
346
  try:
 
 
 
 
 
347
  print("Test Results:", json.dumps(test_results, indent=2, cls=CustomJSONEncoder))
348
  except Exception as e:
349
- logger.error(f"Error serializing test results: {e}")
 
 
 
337
  return recommendations
338
 
339
  if __name__ == "__main__":
340
+ logger.info("===== Application Startup at %s =====", datetime.now().isoformat())
 
 
 
 
 
341
  try:
342
+ # Example data to test JSON serialization
343
+ test_results = {
344
+ "timestamp": datetime.now(),
345
+ "status": "success"
346
+ }
347
  print("Test Results:", json.dumps(test_results, indent=2, cls=CustomJSONEncoder))
348
  except Exception as e:
349
+ logger.error(f"Error serializing test results: {e}")
350
+
351
+ logger.info("Application initialized successfully.")