Skip to content

Commit

Permalink
refactor:reset log level
Browse files Browse the repository at this point in the history
  • Loading branch information
Monomux committed Aug 27, 2022
1 parent 00bd294 commit 4f31265
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UIFunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
logger.add(sys.stdout, backtrace=True, diagnose=True,
level='DEBUG')
logger.add('logs/{time}.log', rotation='20MB', backtrace=True, diagnose=True,
level='DEBUG')
level='INFO')


def get_assets_path(*paths):
Expand Down Expand Up @@ -504,7 +504,7 @@ def run(self):
extension.onbeginp()
self.frame.playtune('start.wav')
while (self.j < extension.runtimes or extension.runtimes == 0) and nointerrupt:
logger.info('===========%d==============' % self.j)
logger.debug('===========%d==============' % self.j)
current_status = self.frame.tnumrd.text()
if current_status in ['broken', 'finished']:
self.frame.running = False
Expand Down Expand Up @@ -637,7 +637,7 @@ def run_sub_script(cls, extension, scriptpath: str, subextension_name: str = 'Ex
k = 0
nointerrupt = True
while (k < newextension.runtimes or newextension.runtimes == 0) and nointerrupt:
logger.info('========%d========' % k)
logger.debug('========%d========' % k)
try:
if newextension.onbeforeeachloop(k):
nointerrupt = nointerrupt and RunScriptClass.run_script_once(newevents, newextension, thd=thd, labeldict=labeldict)
Expand Down

0 comments on commit 4f31265

Please sign in to comment.