root 4 years ago
parent
commit
798555315f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app.py

+ 3 - 0
app.py

@@ -20,6 +20,7 @@ if "MESSAGGERIA_SETTING" in os.environ:
 UPLOAD_DIR = os.getenv("UPLOAD_DIR", "./uploads/")
 
 logging.basicConfig(level=logging.DEBUG)
+app.logger.setLevel(logging.DEBUG)
 
 
 def sendmail(sender, to, subject, body):
@@ -98,6 +99,8 @@ def upload(site):
                         now=datetime.now(), site=site, url=url
                     ),
                 )
+    else:
+        logging.warn("Sito senza configurazione!")
     return fname