Ver código fonte

Adaptions for new logging

master
Dirk Alders 4 anos atrás
pai
commit
b95bc3350d
1 arquivos alterados com 5 adições e 2 exclusões
  1. 5
    2
      __init__.py

+ 5
- 2
__init__.py Ver arquivo

@@ -35,8 +35,11 @@ import sys
35 35
 import time
36 36
 
37 37
 
38
-logger_name = 'FSTOOLS'
39
-logger = logging.getLogger(logger_name)
38
+try:
39
+    from config import APP_NAME as ROOT_LOGGER_NAME
40
+except ImportError:
41
+    ROOT_LOGGER_NAME = 'root'
42
+logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
40 43
 
41 44
 
42 45
 __DESCRIPTION__ = """The Module {\\tt %s} is designed to help on all issues with files and folders.

Carregando…
Cancelar
Salvar