ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/conf.C
(Generate patch)

Comparing gvpe/src/conf.C (file contents):
Revision 1.1 by pcg, Sat Mar 1 15:53:03 2003 UTC vs.
Revision 1.2 by pcg, Thu Mar 6 18:43:07 2003 UTC

65{ 65{
66 memset (this, 0, sizeof (*this)); 66 memset (this, 0, sizeof (*this));
67 67
68 rekey = DEFAULT_REKEY; 68 rekey = DEFAULT_REKEY;
69 keepalive = DEFAULT_KEEPALIVE; 69 keepalive = DEFAULT_KEEPALIVE;
70 llevel = L_INFO;
70 71
71 default_node.port = DEFAULT_PORT; 72 default_node.port = DEFAULT_PORT;
72 default_node.connectmode = conf_node::C_ALWAYS; 73 default_node.connectmode = conf_node::C_ALWAYS;
73 default_node.compress = true; 74 default_node.compress = true;
74} 75}
162 if (!strcmp (var, "loglevel")) 163 if (!strcmp (var, "loglevel"))
163 { 164 {
164 loglevel l = string_to_loglevel (val); 165 loglevel l = string_to_loglevel (val);
165 166
166 if (l != L_NONE) 167 if (l != L_NONE)
167 set_loglevel (l); 168 llevel = l;
168 else 169 else
169 slog (L_WARN, "'%s': %s, at '%s' line %d", val, UNKNOWN_LOGLEVEL, fname, line); 170 slog (L_WARN, "'%s': %s, at '%s' line %d", val, UNKNOWN_LOGLEVEL, fname, line);
170 } 171 }
171 172
172 // per config 173 // per config

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines