|
@@ -1,4 +1,5 @@
|
|
|
import random
|
|
|
+import os
|
|
|
import logging
|
|
|
import json
|
|
|
import time
|
|
@@ -24,7 +25,7 @@ from geventwebsocket.handler import WebSocketHandler
|
|
|
|
|
|
|
|
|
logging.basicConfig(level=logging.DEBUG,
|
|
|
- filename='app.log',
|
|
|
+ filename=os.path.join(os.path.dirname(os.path.realpath(__file__)), "logs", 'app.log'),
|
|
|
filemode='w',
|
|
|
format="%(asctime)s:%(levelname)s:%(name)s -- %(message)s", datefmt="%Y/%m/%d %H:%M:%S"
|
|
|
)
|