Spaces:
Running
Running
Update app/app.py
Browse files- app/app.py +10 -10
app/app.py
CHANGED
@@ -10,16 +10,16 @@ import time
|
|
10 |
from commands import ping_command, settings_command
|
11 |
from bank import BankSystem, BankAccount, TransactionError
|
12 |
|
13 |
-
# Logging konfigurieren
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
|
24 |
# Umgebungsvariablen und Konfiguration
|
25 |
PUBLIC_KEY = os.getenv('Public_Key', '').strip()
|
|
|
10 |
from commands import ping_command, settings_command
|
11 |
from bank import BankSystem, BankAccount, TransactionError
|
12 |
|
13 |
+
# Logging konfigurieren: Nur in die Konsole ausgeben
|
14 |
+
logging.basicConfig(
|
15 |
+
level=logging.INFO,
|
16 |
+
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
17 |
+
handlers=[
|
18 |
+
logging.StreamHandler()
|
19 |
+
]
|
20 |
+
)
|
21 |
+
logger = logging.getLogger(__name__)
|
22 |
+
|
23 |
|
24 |
# Umgebungsvariablen und Konfiguration
|
25 |
PUBLIC_KEY = os.getenv('Public_Key', '').strip()
|