Изменил отображение в консоли

This commit is contained in:
2025-10-03 18:20:30 +03:00
parent 9688bd644d
commit e14972c8a2
2 changed files with 3 additions and 3 deletions

View File

@@ -157,10 +157,10 @@ class ClockifyAPI(ClockifyConfig):
} }
) )
if config.is_debug or resp.ok: if config.is_debug or resp.ok:
logger.info(f"{Fore.GREEN}{activity}{Fore.RESET}") logger.info(f"{Fore.GREEN}{activity}{Fore.RESET}".ljust(60) + "")
else: else:
logger.debug(resp.json()) logger.debug(resp.json())
logger.error(f"{Fore.RED}{activity}{Fore.RESET}") logger.error(f"{Fore.RED}{activity}{Fore.RESET}".ljust(60) + "")
except Exception as e: except Exception as e:
logger.error(e) logger.error(e)
return return

View File

@@ -3,7 +3,7 @@ import sys
logging.basicConfig( logging.basicConfig(
level=logging.INFO, level=logging.INFO,
format='%(asctime)s - %(name)s:%(lineno)d - %(levelname)s - %(message)s', format='%(asctime)s %(name)s:%(lineno)d %(levelname)s %(message)s',
handlers=[ handlers=[
logging.FileHandler('app.log', encoding='utf-8'), logging.FileHandler('app.log', encoding='utf-8'),
logging.StreamHandler(sys.stdout) logging.StreamHandler(sys.stdout)