#include "fde.h"
#include "SquidTime.h"
#include "wordlist.h"
+#include "Debug.h"
/**
\defgroup CacheManagerInternal Cache Manager Internals
#endif
} else if ((a = findAction(request)) == NULL) {
- debugs(16, 1, "CacheManager::ParseUrl: action '" << request << "' not found");
+ debugs(16, DBG_IMPORTANT, "CacheManager::ParseUrl: action '" << request << "' not found");
return NULL;
} else {
prot = ActionProtection(a);
if (!strcmp(prot, "disabled") || !strcmp(prot, "hidden")) {
- debugs(16, 1, "CacheManager::ParseUrl: action '" << request << "' is " << prot);
+ debugs(16, DBG_IMPORTANT, "CacheManager::ParseUrl: action '" << request << "' is " << prot);
return NULL;
}
}
return;
if (!(passwd_del = strchr(basic_cookie, ':'))) {
- debugs(16, 1, "CacheManager::ParseHeaders: unknown basic_cookie format '" << basic_cookie << "'");
+ debugs(16, DBG_IMPORTANT, "CacheManager::ParseHeaders: unknown basic_cookie format '" << basic_cookie << "'");
return;
}
entry->lock();
entry->expires = squid_curtime;
- debugs(16, 5, "CACHEMGR: " << fd_table[fd].ipaddr << " requesting '" << mgr->action << "'");
+ debugs(16, 5, "CacheManager: " << fd_table[fd].ipaddr << " requesting '" << mgr->action << "'");
/* get additional info from request headers */
ParseHeaders(mgr, request);
/* warn if user specified incorrect password */
if (mgr->passwd)
- debugs(16, 1, "CACHEMGR: " <<
+ debugs(16, DBG_IMPORTANT, "CacheManager: " <<
(mgr->user_name ? mgr->user_name : "<unknown>") << "@" <<
fd_table[fd].ipaddr << ": incorrect password for '" <<
mgr->action << "'" );
else
- debugs(16, 1, "CACHEMGR: " <<
+ debugs(16, DBG_IMPORTANT, "CacheManager: " <<
(mgr->user_name ? mgr->user_name : "<unknown>") << "@" <<
fd_table[fd].ipaddr << ": password needed for '" <<
mgr->action << "'" );
return;
}
- debugs(16, 1, "CACHEMGR: " <<
+ debugs(16, DBG_IMPORTANT, "CacheManager: " <<
(mgr->user_name ? mgr->user_name : "<unknown>") << "@" <<
fd_table[fd].ipaddr << " requesting '" <<
mgr->action << "'" );
/// \ingroup CacheManagerInternal
void CacheManager::ShutdownAction::run(StoreEntry *sentry)
{
- debugs(16, 0, "Shutdown by command.");
+ debugs(16, DBG_CRITICAL, "Shutdown by Cache Manager command.");
shut_down(0);
}
/// \ingroup CacheManagerInternal
void
CacheManager::ReconfigureAction::run(StoreEntry * sentry)
{
- debug(16, 0) ("Reconfigure by command.\n");
+ debug(16, DBG_IMPORTANT) ("Reconfigure by Cache Manager command.\n");
storeAppendPrintf(sentry, "Reconfiguring Squid Process ....");
reconfigure(SIGHUP);
}
CacheManager::OfflineToggleAction::run(StoreEntry * sentry)
{
Config.onoff.offline = !Config.onoff.offline;
- debugs(16, 0, "offline_mode now " << (Config.onoff.offline ? "ON" : "OFF") << ".");
+ debugs(16, DBG_IMPORTANT, "offline_mode now " << (Config.onoff.offline ? "ON" : "OFF") << " by Cache Manager request.");
storeAppendPrintf(sentry, "offline_mode is now %s\n",
Config.onoff.offline ? "ON" : "OFF");