diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2022-10-29 16:57:53 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:52 +0100 |
commit | acaf2e81719ba160aac3bc7c3c78fc4db3d13f65 (patch) | |
tree | a23c4c04ac63987312ce2ff9bb6fc1351c887dfe /slack/log.py | |
parent | cdf3cfe4a2ed8a340ac1a8404e7cd7e604fe3857 (diff) | |
download | wee-slack-acaf2e81719ba160aac3bc7c3c78fc4db3d13f65.tar.gz |
Use class for shared, so we don't have to change usage when combining
Diffstat (limited to 'slack/log.py')
-rw-r--r-- | slack/log.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slack/log.py b/slack/log.py index 21b6434..10dc803 100644 --- a/slack/log.py +++ b/slack/log.py @@ -2,7 +2,7 @@ from enum import IntEnum import weechat -from . import globals as G +from .shared import shared class LogLevel(IntEnum): @@ -16,7 +16,7 @@ class LogLevel(IntEnum): # TODO: Figure out what to do with print_error vs log def print_error(message: str): - weechat.prnt("", f"{weechat.prefix('error')}{G.SCRIPT_NAME}: {message}") + weechat.prnt("", f"{weechat.prefix('error')}{shared.SCRIPT_NAME}: {message}") def log(level: LogLevel, message: str): |