mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
upgrade wakatime package to v2.0.4 to prevent logging namespace conflicts
This commit is contained in:
parent
c863bde54a
commit
d2a996e845
@ -13,7 +13,7 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
__title__ = 'wakatime'
|
__title__ = 'wakatime'
|
||||||
__version__ = '2.0.3'
|
__version__ = '2.0.4'
|
||||||
__author__ = 'Alan Hamlett'
|
__author__ = 'Alan Hamlett'
|
||||||
__license__ = 'BSD'
|
__license__ = 'BSD'
|
||||||
__copyright__ = 'Copyright 2014 Alan Hamlett'
|
__copyright__ = 'Copyright 2014 Alan Hamlett'
|
||||||
@ -52,7 +52,7 @@ except:
|
|||||||
from .packages import tzlocal3
|
from .packages import tzlocal3
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
class FileAction(argparse.Action):
|
class FileAction(argparse.Action):
|
||||||
|
@ -73,7 +73,7 @@ def set_log_level(logger, args):
|
|||||||
|
|
||||||
|
|
||||||
def setup_logging(args, version):
|
def setup_logging(args, version):
|
||||||
logger = logging.getLogger()
|
logger = logging.getLogger('WakaTime')
|
||||||
set_log_level(logger, args)
|
set_log_level(logger, args)
|
||||||
if len(logger.handlers) > 0:
|
if len(logger.handlers) > 0:
|
||||||
formatter = JsonFormatter(datefmt='%Y/%m/%d %H:%M:%S %z')
|
formatter = JsonFormatter(datefmt='%Y/%m/%d %H:%M:%S %z')
|
||||||
|
@ -19,7 +19,7 @@ from .projects.subversion import Subversion
|
|||||||
from .projects.wakatime import WakaTime
|
from .projects.wakatime import WakaTime
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
# List of plugin classes to find a project for the current file path.
|
# List of plugin classes to find a project for the current file path.
|
||||||
|
@ -13,7 +13,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
class BaseProject(object):
|
class BaseProject(object):
|
||||||
|
@ -15,7 +15,7 @@ import os
|
|||||||
from .base import BaseProject
|
from .base import BaseProject
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
# str is unicode in Python3
|
# str is unicode in Python3
|
||||||
|
@ -15,7 +15,7 @@ import os
|
|||||||
from .base import BaseProject
|
from .base import BaseProject
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
# str is unicode in Python3
|
# str is unicode in Python3
|
||||||
|
@ -26,7 +26,7 @@ import os
|
|||||||
from .base import BaseProject
|
from .base import BaseProject
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
# str is unicode in Python3
|
# str is unicode in Python3
|
||||||
|
@ -21,7 +21,7 @@ except ImportError:
|
|||||||
from ..packages.ordereddict import OrderedDict
|
from ..packages.ordereddict import OrderedDict
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
# str is unicode in Python3
|
# str is unicode in Python3
|
||||||
|
@ -17,7 +17,7 @@ import os
|
|||||||
from .base import BaseProject
|
from .base import BaseProject
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
# str is unicode in Python3
|
# str is unicode in Python3
|
||||||
|
@ -22,7 +22,7 @@ except ImportError:
|
|||||||
HAS_SQL = False
|
HAS_SQL = False
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
class Queue(object):
|
class Queue(object):
|
||||||
|
@ -20,7 +20,7 @@ else:
|
|||||||
from pygments.lexers import guess_lexer_for_filename
|
from pygments.lexers import guess_lexer_for_filename
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
# force file name extensions to be recognized as a certain language
|
# force file name extensions to be recognized as a certain language
|
||||||
|
Loading…
Reference in New Issue
Block a user