acmesh-official / acme.sh

A pure Unix shell script implementing ACME client protocol
https://acme.sh
GNU General Public License v3.0
38.98k stars 4.94k forks source link

How to NOT show asterisks for parameters in log output of test scripts #5329

Open lifeboy opened 3 days ago

lifeboy commented 3 days ago

When I run the automated tests on the dns api script (dns_pmiab.sh), I get asterisks for the parameters in the output log, which makes it practically impossible to find a problem or see why the test fails. How can one instruct the tests to show the actual values?

Neilpang commented 3 days ago

example ?

lifeboy commented 3 days ago

Below is a sample from the log:

Run cd ../acmetest && ./rundocker.sh  testall
##[debug]/usr/bin/bash -e /home/runner/work/_temp/a589070b-5b80-40bc-8c7f-1f6163c145f8.sh
Test for case: le_test_dnsapi
[Mon Oct 14 19:11:18 UTC 2024] Running ubuntu:latest, this may take a few minutes, please wait.
Mon, 14 Oct 2024 19:11:34 UTC
TEST_LOCAL skip setup.
==Running le_test_dnsapi please wait
no crontab for root
no crontab for root
Testing wildcard domain. 
TestingDomain='***'
 [FAIL] 
Run Failed
/root/.acme.sh/acme.sh --server "letsencrypt_test"  --issue -d "***" -d "*.***" --dns *** --dnssleep "***" ------------------------------------------
==Running le_test_dnsapi please wait
Testing wildcard domain. 
TestingDomain='***'
[Mon Oct 14 19:11:[35](https://github.com/lifeboy/acme.sh/actions/runs/11333608729/job/31518116520#step:5:36) UTC 2024] _is_idn_d='***'
[Mon Oct 14 19:11:35 UTC 2024] _idn_temp
[Mon Oct 14 19:11:35 UTC 2024] _is_idn_d='*.***'
[Mon Oct 14 19:11:35 UTC 2024] _idn_temp

I would like to see for example what the value of TestingDomain is.

Also /root/.acme.sh/acme.sh --server "letsencrypt_test" --issue -d "" -d ".**" --dns --dnssleep "***" doesn't help mucbh to debug.

Is there a way to tell the system to net output asterisks, but the actual values?

lifeboy commented 1 day ago

Does anyone have advice on how to see these values?