import os
import logging

if "GROUNDSTATION_DEBUG" in os.environ:
    LEVEL = getattr(logging, os.getenv("GROUNDSTATION_DEBUG"))
else:
    LEVEL = logging.DEBUG


def _get_formatter():
    return logging.Formatter('%(name)s - %(levelname)s - %(message)s')

CONSOLE_FORMATTER = _get_formatter()


def _get_console_handler():
    ch = logging.StreamHandler()
    ch.setLevel(LEVEL)
    ch.setFormatter(CONSOLE_FORMATTER)
    return ch

CONSOLE_HANDLER = _get_console_handler()

LOGGERS = {}  # Cache for instanciated loggers


def getLogger(name):  # Not threadsafe
    if name in LOGGERS:
        return LOGGERS[name]
    logger = logging.getLogger(name)
    logger.setLevel(LEVEL)
    logger.addHandler(CONSOLE_HANDLER)

    LOGGERS[name] = logger
    return logger

@@ -17,16 +17,32 @@
  logging
+%0Aimport binascii
 %0A%0Aif %22GR
@@ -172,16 +172,69 @@
 DEBUG%0A%0A%0A
+def fix_oid(oid):%0A    return binascii.hexlify(oid)%0A%0A%0A
 def _get

Implement fixing oids on logger