Add more logging

This commit is contained in:
unidcml
2025-02-08 19:22:40 +03:00
parent 38cb76b827
commit b1def56e61
2 changed files with 5 additions and 2 deletions

View File

@@ -335,8 +335,11 @@ def generate_dat_domains(data_path='geosite_data', output_name='geosite.dat', ou
try:
subprocess.run(
["domain-list-community", f"-datapath={data_path}", f"-outputname={output_name}", f"-outputdir={output_directory}"],
check=True
check=True,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL
)
print(f"Compiled .dat file: {output_directory}/{output_name}")
except subprocess.CalledProcessError as e:
print(f"Compile error geosite.dat: {e}")