Изменил отображение в консоли
This commit is contained in:
@@ -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
|
||||||
|
|||||||
2
track.py
2
track.py
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user