]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/FdNotes.cc
Changed all level-1 debugs messages to use DBG_IMPORTANT definition.
[thirdparty/squid.git] / src / ipc / FdNotes.cc
1 /*
2 * $Id$
3 *
4 * DEBUG: section 54 Interprocess Communication
5 *
6 */
7
8 #include "squid.h"
9 #include "Debug.h"
10 #include "ipc/FdNotes.h"
11
12
13 const char *
14 Ipc::FdNote(int fdNoteId)
15 {
16 static const char *FdNotes[Ipc::fdnEnd] = {
17 "None", // fdnNone
18 "HTTP Socket", // fdnHttpSocket
19 "HTTPS Socket", // fdnHttpsSocket
20 #if SQUID_SNMP
21 "Incoming SNMP Socket", // fdnInSnmpSocket
22 "Outgoing SNMP Socket", // fdnOutSnmpSocket
23 #endif
24 "Incoming ICP Socket", // fdnInIcpSocket
25 "Incoming HTCP Socket" // fdnInHtcpSocket
26 };
27
28 if (fdnNone < fdNoteId && fdNoteId < fdnEnd)
29 return FdNotes[fdNoteId];
30
31 debugs(54, DBG_IMPORTANT, HERE << "salvaged bug: wrong fd_note ID: " << fdNoteId);
32 return FdNotes[fdnNone];
33 }