]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix missong ERROR label on template loading errors
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 19 May 2017 13:37:24 +0000 (01:37 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 19 May 2017 13:37:24 +0000 (01:37 +1200)
src/errorpage.cc

index 8c59974f9810f4ccc007b1d0882b435e15f09c9b..eee4e616ddb310b7aab526fcca72b35de1ec2c66 100644 (file)
@@ -332,7 +332,7 @@ TemplateFile::loadFromFile(const char *path)
         /* with dynamic locale negotiation we may see some failures before a success. */
         if (!silent && templateCode < TCP_RESET) {
             int xerrno = errno;
-            debugs(4, DBG_CRITICAL, MYNAME << "'" << path << "': " << xstrerr(xerrno));
+            debugs(4, DBG_CRITICAL, "ERROR: loading file '" << path << "': " << xstrerr(xerrno));
         }
         wasLoaded = false;
         return wasLoaded;
@@ -340,7 +340,7 @@ TemplateFile::loadFromFile(const char *path)
 
     while ((len = FD_READ_METHOD(fd, buf, sizeof(buf))) > 0) {
         if (!parse(buf, len, false)) {
-            debugs(4, DBG_CRITICAL, MYNAME << "parse error while reading template file: " << path);
+            debugs(4, DBG_CRITICAL, "ERROR: parsing error in template file: " << path);
             wasLoaded = false;
             return wasLoaded;
         }