Skip to content

Commit

Permalink
Improve less logging option #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkd-Alex committed Jan 22, 2021
1 parent a9cf39f commit e6ae8bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions TwitchChannelPointsMiner/TwitchChannelPointsMiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def run(self, streamers: list = [], followers=False):
self.twitch_browser = TwitchBrowser(
self.twitch.twitch_login.get_auth_token(),
self.session_id,
settings=self.browser_settings
settings=self.browser_settings,
)
self.twitch_browser.init()

Expand All @@ -146,7 +146,7 @@ def run(self, streamers: list = [], followers=False):
streamers=self.streamers,
bet_settings=self.bet_settings,
events_predictions=self.events_predictions,
less_printing=self.logger_settings.less
less_printing=self.logger_settings.less,
)
topics = [
PubsubTopic(
Expand Down
4 changes: 3 additions & 1 deletion TwitchChannelPointsMiner/classes/Logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def configure_loggers(username, settings):
if settings.less is False
else "%(asctime)s - %(message)s"
),
datefmt=("%d/%m/%y %H:%M:%S" if settings.less is False else "%d/%m %H:%M:%S"),
datefmt=(
"%d/%m/%y %H:%M:%S" if settings.less is False else "%d/%m %H:%M:%S"
),
print_emoji=settings.emoji,
)
)
Expand Down
2 changes: 1 addition & 1 deletion TwitchChannelPointsMiner/classes/Streamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ def update_history(self, reason_code, earned):
self.history[reason_code]["amount"] += earned

def set_less_printing(self, value):
self.less_printing = value
self.less_printing = value

0 comments on commit e6ae8bd

Please sign in to comment.