Skip to content

Commit

Permalink
Merge pull request #11 from TheSecEng/core/logging
Browse files Browse the repository at this point in the history
Core/logging
  • Loading branch information
TerminalFi authored Mar 13, 2020
2 parents 2b3f230 + cb5202d commit bb3f181
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
10 changes: 4 additions & 6 deletions color_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,9 @@ def create_user_custom_theme(self):

if self.regenerate:
self.log.debug(
"[Colored Comments] : %s - %s"
% (
self.create_user_custom_theme.__name__,
"generating / regenerating theme",
)
"[Colored Comments] : %s - %s",
self.create_user_custom_theme.__name__,
"generating / regenerating theme",
)
try:
os.remove(new_cs_absolute)
Expand Down Expand Up @@ -165,7 +163,7 @@ def load_color_scheme(self, scheme):
"for details."
)
self.log.debug(
"[Colored Comments] : %s - %s" % (self.load_color_scheme.__name__, ex)
"[Colored Comments] : %s - %s", self.load_color_scheme.__name__, ex
)
raise
updates_made = color_scheme = ""
Expand Down
9 changes: 5 additions & 4 deletions colored_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .color_manager import ColorManager

NAME = "Colored Comments"
VERSION = "2.1.0"
VERSION = "2.1.1"
LOG = logging.Logger

REGION_KEYS = list()
Expand Down Expand Up @@ -166,8 +166,9 @@ def generate_identifier_expression(tags):
priority = int(priority)
except ValueError as ex:
LOG.debug(
"[Colored Comments]: %s - %s"
% (generate_identifier_expression.__name__, ex)
"[Colored Comments]: %s - %s",
generate_identifier_expression.__name__,
ex,
)
priority = 2147483647
if not unordered_tags.get(priority, False):
Expand Down Expand Up @@ -204,7 +205,7 @@ def _get_icon():
sublime.load_binary_resource(icon)
except OSError as ex:
icon = ""
LOG.debug("[Colored Comments]: %s - %s" % (_get_icon.__name__, ex))
LOG.debug("[Colored Comments]: %s - %s", _get_icon.__name__, ex)
pass
return icon

Expand Down

0 comments on commit bb3f181

Please # to comment.