# Path: sen/constants.py
# PROJECT_NAME = "sen"
# 
# LOG_FILE_NAME = "sen.debug.log"


import os
import logging
import functools
import traceback
import time
from datetime import datetime
from docker.errors import APIError
from sen.constants import PROJECT_NAME, LOG_FILE_NAME




logger = logging.getLogger(__name__)


def _ensure_unicode(s):
    try:
        return s.decode("utf-8")
    except AttributeError:
        return s


def log_last_traceback():

# Path: sen/constants.py
# PROJECT_NAME = "sen"
# 
# LOG_FILE_NAME = "sen.debug.log"


# Path: sen/util.py
import os
import logging
import functools
import traceback
import time
from datetime import datetime
from docker.errors import APIError
from sen.constants import PROJECT_NAME, LOG_FILE_NAME





logger = logging.getLogger(__name__)


def _ensure_unicode(s):
    try:
        return s.decode("utf-8")
    except AttributeError:
        return s


def log_last_traceback():

    logger.error(traceback.format_exc())