feat Ground wrk for disconnect refactoring

This commit is contained in:
Swann
2020-01-19 17:21:16 +01:00
parent e99e6965ec
commit fdb7995cbf
5 changed files with 5 additions and 6 deletions

View File

@ -31,7 +31,7 @@ DEPENDENCIES = {
logger = logging.getLogger(__name__)
logger.setLevel(logging.ERROR)
logger.setLevel(logging.INFO)
#TODO: refactor config
# UTILITY FUNCTIONS

View File

@ -6,7 +6,7 @@ import sys
from pathlib import Path
logger = logging.getLogger(__name__)
logger.setLevel(logging.ERROR)
logger.setLevel(logging.INFO)
CONFIG_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "config")
CONFIG = os.path.join(CONFIG_DIR, "app.yaml")

View File

@ -26,7 +26,7 @@ from .libs.replication.replication.constants import (
FETCHED)
logger = logging.getLogger(__name__)
logger.setLevel(logging.ERROR)
logger.setLevel(logging.INFO)
client = None
delayables = []
@ -184,7 +184,6 @@ class SessionStopOperator(bpy.types.Operator):
settings.is_admin = False
assert(client)
client.remove(settings.user_uuid)
client.disconnect()
for d in delayables:

View File

@ -14,7 +14,7 @@ from . import environment, presence
from .libs import dump_anything
logger = logging.getLogger(__name__)
logger.setLevel(logging.ERROR)
logger.setLevel(logging.INFO)
def has_action(target):
return (hasattr(target, 'animation_data')