deadtom 1 месяц назад
Родитель
Сommit
4f47fe22a8
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      ownchatbot/web_panels.py

+ 4 - 4
ownchatbot/web_panels.py

@@ -730,7 +730,7 @@ def todo():
     global current_todos
     todolist_items = current_app.config['LIST']
     current_todos = copy.deepcopy(todolist_items)  # deepcopy because current_todos was getting updated with LIST
-    current_app.logger.info(f'/todo: {current_todos}')  # TESTING
+    current_app.logger.debug(f'/todo: {current_todos}')
     return render_template('list.html', items=todolist_items)
 
 
@@ -738,12 +738,12 @@ def todo():
 def check_todo():
     global current_todos
     todolist_items = current_app.config['LIST']
-    current_app.logger.info(f'\n/updateTodo:\n{current_todos}\n{todolist_items}')  # TESTING
+    current_app.logger.debug(f'\n/updateTodo:\n{current_todos}\n{todolist_items}')
     if current_todos == todolist_items:
-        current_app.logger.info('FALSE')  # TESTING
+        current_app.logger.debug('FALSE')
         return jsonify({"updated": False})
     else:
         current_todos = copy.deepcopy(todolist_items)  # deepcopy because current_todos was getting updated with LIST
-        current_app.logger.info('TRUE')  # TESTING
+        current_app.logger.debug('TRUE')
         return jsonify({"updated": True})