mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2026-04-03 12:58:56 +03:00
Add more logging
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user