1
0
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:
Ander Juaristi 2015-08-08 19:40:49 +02:00 committed by Tim Rühsen
parent 187edb604a
commit ab47d9fa3a

View File

@ -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);