------------------------------------------------------------ revno: 12342 revision-id: squid3@treenet.co.nz-20121005102639-nfxo667u2x15e04v parent: kinkie@squid-cache.org-20121005072635-0w6cfh03wwbozh09 committer: Amos Jeffries branch nick: trunk timestamp: Fri 2012-10-05 22:26:39 +1200 message: Polish: convert several opt_parse_cfg_only to DBG_PARSE_NOTE ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20121005102639-nfxo667u2x15e04v # target_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/ # testament_sha1: b76305965714f40bc1facfc1ff49bbb723894f41 # timestamp: 2012-10-05 10:52:49 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/ # base_revision_id: kinkie@squid-cache.org-20121005072635-\ # 0w6cfh03wwbozh09 # # Begin patch === modified file 'src/adaptation/ServiceConfig.cc' --- src/adaptation/ServiceConfig.cc 2012-08-28 13:00:30 +0000 +++ src/adaptation/ServiceConfig.cc 2012-10-05 10:26:39 +0000 @@ -82,11 +82,11 @@ if (strcmp(option, "0") == 0) { // backward compatibility name = "bypass"; value = "off"; - debugs(3, opt_parse_cfg_only?0:1, "UPGRADE: Please use 'bypass=off' option to disable service bypass"); + debugs(3, DBG_PARSE_NOTE(DBG_IMPORTANT), "UPGRADE: Please use 'bypass=off' option to disable service bypass"); } else if (strcmp(option, "1") == 0) { // backward compatibility name = "bypass"; value = "on"; - debugs(3, opt_parse_cfg_only?0:1, "UPGRADE: Please use 'bypass=on' option to enable service bypass"); + debugs(3, DBG_PARSE_NOTE(DBG_IMPORTANT), "UPGRADE: Please use 'bypass=on' option to enable service bypass"); } else { char *eq = strstr(option, "="); const char *sffx = strstr(option, "://"); @@ -117,7 +117,7 @@ else if (strcmp(name, "ipv6") == 0) { grokked = grokBool(ipv6, name, value); if (grokked && ipv6 && !Ip::EnableIpv6) - debugs(3, DBG_IMPORTANT, "WARNING: IPv6 is disabled. ICAP service option ignored."); + debugs(3, DBG_PARSE_NOTE(DBG_IMPORTANT), "WARNING: IPv6 is disabled. ICAP service option ignored."); } else if (strcmp(name, "max-conn") == 0) grokked = grokLong(maxConn, name, value); else if (strcmp(name, "on-overload") == 0) { === modified file 'src/cf_gen.cc' --- src/cf_gen.cc 2012-07-23 07:02:06 +0000 +++ src/cf_gen.cc 2012-10-05 10:26:39 +0000 @@ -621,7 +621,7 @@ fout << "debugs(0, DBG_CRITICAL, \"ERROR: Directive '" << aName << "' is obsolete.\");\n"; for (LineList::const_iterator l = doc.begin(); l != doc.end(); ++l) { // offset line to strip initial whitespace tab byte - fout << " debugs(0, opt_parse_cfg_only?0:1, \"" << aName << " : " << &(*l)[1] << "\");" << std::endl; + fout << " debugs(0, DBG_PARSE_NOTE(DBG_IMPORTANT), \"" << aName << " : " << &(*l)[1] << "\");" << std::endl; } fout << " parse_obsolete(token);"; } else if (!loc.size() || loc.compare("none") == 0) {