mirror of
https://github.com/doms9/iptv.git
synced 2026-01-21 03:59:03 +01:00
e
fix logging
This commit is contained in:
parent
d231f8c02e
commit
00000d9dfc
3 changed files with 34 additions and 8 deletions
|
|
@ -49,6 +49,8 @@ def load_base() -> tuple[list[str], int]:
|
|||
|
||||
|
||||
async def main() -> None:
|
||||
log.info(f"{'=' * 10} Scraper Started {'=' * 10}")
|
||||
|
||||
base_m3u8, tvg_chno = load_base()
|
||||
|
||||
tasks = [
|
||||
|
|
@ -144,6 +146,10 @@ async def main() -> None:
|
|||
|
||||
log.info(f"Events saved to {EVENTS_FILE.resolve()}")
|
||||
|
||||
for hndlr in log.handlers:
|
||||
hndlr.flush()
|
||||
hndlr.stream.write("\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(main())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue