Изменил отображение в консоли
This commit is contained in:
@@ -157,10 +157,10 @@ class ClockifyAPI(ClockifyConfig):
|
||||
}
|
||||
)
|
||||
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:
|
||||
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:
|
||||
logger.error(e)
|
||||
return
|
||||
|
||||
2
track.py
2
track.py
@@ -3,7 +3,7 @@ import sys
|
||||
|
||||
logging.basicConfig(
|
||||
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=[
|
||||
logging.FileHandler('app.log', encoding='utf-8'),
|
||||
logging.StreamHandler(sys.stdout)
|
||||
|
||||
Reference in New Issue
Block a user