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

@ -31,7 +31,7 @@ jobs:
-v ${{ github.workspace }}/Services:/app/Services \
-v ${{ github.workspace }}/SRS:/app/SRS \
-v ${{ github.workspace }}/DAT:/app/DAT \
itdoginfo/compilesrs:0.1.5
unidcml/allow-domains-test:1.0.0
- name: Check Russia/inside-dnsmasq-ipset
uses: itdoginfo/dnsmasq-action@0.1

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}")