Rammohan0504 commited on
Commit
5b82b78
·
verified ·
1 Parent(s): 4437c76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -5,6 +5,7 @@ from salesforce import get_salesforce_connection
5
  import os
6
  import random
7
  import string
 
8
 
9
 
10
  # Initialize Flask app and Salesforce connection
@@ -119,6 +120,17 @@ def signup():
119
  except Exception as e:
120
  return render_template("signup.html", error=f"Error: {str(e)}")
121
  return render_template("signup.html")
 
 
 
 
 
 
 
 
 
 
 
122
 
123
  @app.route("/login", methods=["GET", "POST"])
124
  def login():
 
5
  import os
6
  import random
7
  import string
8
+ import logging
9
 
10
 
11
  # Initialize Flask app and Salesforce connection
 
120
  except Exception as e:
121
  return render_template("signup.html", error=f"Error: {str(e)}")
122
  return render_template("signup.html")
123
+ import logging
124
+
125
+ # Set up logging configuration
126
+ logging.basicConfig(level=logging.DEBUG)
127
+
128
+ # Log different levels of messages
129
+ logging.debug("This is a debug message.")
130
+ logging.info("Referral Code received: %s", referral_code)
131
+ logging.warning("This is a warning.")
132
+ logging.error("This is an error.")
133
+
134
 
135
  @app.route("/login", methods=["GET", "POST"])
136
  def login():