]> granicus.if.org Git - pdns/commitdiff
ixfrdist: improve error messages
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 10 Jan 2018 16:17:09 +0000 (17:17 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 29 Jan 2018 08:20:13 +0000 (09:20 +0100)
pdns/ixfrdist.cc

index 74bf3882da2abc31de062be351b86fdce9a70d4e..2de1177190109c34acdd5bbf6f803e9f310addf8 100644 (file)
@@ -132,9 +132,9 @@ void updateThread(const vector<DNSName> &domains) {
           cerr<<"[INFO]   Done!"<<endl;
         }
       } catch (ResolverException &e) {
-        cerr<<"[WARNING] Could not retrieve AXFR: "<<e.reason<<endl;
+        cerr<<"[WARNING] Could not retrieve AXFR for '"<<domain<<"': "<<e.reason<<endl;
       } catch (runtime_error &e) {
-        cerr<<"[WARNING] Could not save zone to disk: "<<e.what()<<endl;
+        cerr<<"[WARNING] Could not save zone '"<<domain<<"' to disk: "<<e.what()<<endl;
       }
       serials[domain] = getSerialsFromDir(dir);
       lastCheck[domain] = now;