File tree Expand file tree Collapse file tree 3 files changed +389
-206
lines changed
Expand file tree Collapse file tree 3 files changed +389
-206
lines changed Original file line number Diff line number Diff line change 1+ __version__ = "2.6.0"
12import warnings
23
34from ibllib .misc import logger_config
45
5- warnings .filterwarnings (' always' , category = DeprecationWarning , module = ' ibllib' )
6+ warnings .filterwarnings (" always" , category = DeprecationWarning , module = " ibllib" )
67
78# if this becomes a full-blown library we should let the logging configuration to the discretion of the dev
89# who uses the library. However since it can also be provided as an app, the end-users should be provided
910# with an useful default logging in standard output without messing with the complex python logging system
1011# -*- coding:utf-8 -*-
1112
1213import logging
14+
1315USE_LOGGING = True
1416#%(asctime)s,%(msecs)d
1517if USE_LOGGING :
16- logger_config (name = ' ibllib' )
18+ logger_config (name = " ibllib" )
1719else :
1820 # deactivate all log calls for use as a library
19- logging .getLogger (' ibllib' ).addHandler (logging .NullHandler ())
21+ logging .getLogger (" ibllib" ).addHandler (logging .NullHandler ())
2022
2123try :
2224 import one
2325except ModuleNotFoundError :
24- logging .getLogger (' ibllib' ).error (' Missing dependency, please run `pip install ONE-api`' )
26+ logging .getLogger (" ibllib" ).error (" Missing dependency, please run `pip install ONE-api`" )
You can’t perform that action at this time.
0 commit comments