mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Extra debug traces for HSTS.
* src/main.c (load_hsts, save_hsts): added DEBUGP() calls to signal reads and saves of the HSTS database file.
This commit is contained in:
parent
187edb604a
commit
ab47d9fa3a
@ -174,6 +174,8 @@ load_hsts (void)
|
|||||||
|
|
||||||
if (filename)
|
if (filename)
|
||||||
{
|
{
|
||||||
|
DEBUGP (("Reading HSTS entries from %s\n", filename));
|
||||||
|
|
||||||
hsts_store = hsts_store_open (filename);
|
hsts_store = hsts_store_open (filename);
|
||||||
|
|
||||||
if (!hsts_store)
|
if (!hsts_store)
|
||||||
@ -195,6 +197,9 @@ save_hsts (void)
|
|||||||
{
|
{
|
||||||
char *filename = get_hsts_database ();
|
char *filename = get_hsts_database ();
|
||||||
|
|
||||||
|
if (filename)
|
||||||
|
DEBUGP (("Saving HSTS entries to %s\n", filename));
|
||||||
|
|
||||||
hsts_store_save (hsts_store, filename);
|
hsts_store_save (hsts_store, filename);
|
||||||
hsts_store_close (hsts_store);
|
hsts_store_close (hsts_store);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user