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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -7,6 +7,11 @@ import random
7
  import string
8
  import logging
9
 
 
 
 
 
 
10
 
11
  # Initialize Flask app and Salesforce connection
12
  print("Starting app...")
@@ -115,21 +120,19 @@ def signup():
115
  if referral_code:
116
  referral_message = process_referral_code(referral_code)
117
  print(referral_message)
 
 
 
 
 
118
 
119
  return redirect(url_for("login"))
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"])
 
7
  import string
8
  import logging
9
 
10
+ # Set up logging configuration
11
+ logging.basicConfig(level=logging.DEBUG)
12
+
13
+
14
+
15
 
16
  # Initialize Flask app and Salesforce connection
17
  print("Starting app...")
 
120
  if referral_code:
121
  referral_message = process_referral_code(referral_code)
122
  print(referral_message)
123
+ # Log different levels of messages
124
+ logging.debug("This is a debug message.")
125
+ logging.info("Referral Code received: %s", referral_code)
126
+ logging.warning("This is a warning.")
127
+ logging.error("This is an error.")
128
 
129
  return redirect(url_for("login"))
130
  except Exception as e:
131
  return render_template("signup.html", error=f"Error: {str(e)}")
132
  return render_template("signup.html")
 
133
 
 
 
134
 
135
+
 
 
 
 
136
 
137
 
138
  @app.route("/login", methods=["GET", "POST"])