Lines 223-234
void set_debug_flag(int v)
Link Here
|
223 |
debug_flag = v; |
223 |
debug_flag = v; |
224 |
} |
224 |
} |
225 |
|
225 |
|
226 |
int set_debug_log_from_config(config_t c) |
226 |
void set_debug_log_from_config(config_t c) |
227 |
{ |
227 |
{ |
228 |
return set_debug_file(config_get_one(c, "log.debug", 0)); |
228 |
return set_debug_file(config_get_one(c, "log.debug", 0)); |
229 |
}; |
229 |
} |
230 |
|
230 |
|
231 |
JABBERD2_API int set_debug_file(const char *filename) |
231 |
JABBERD2_API void set_debug_file(const char *filename) |
232 |
{ |
232 |
{ |
233 |
// Close debug output file but not stderr |
233 |
// Close debug output file but not stderr |
234 |
if (debug_log_target != 0 && |
234 |
if (debug_log_target != 0 && |
Lines 255-261
JABBERD2_API int set_debug_file(const char *filename)
Link Here
|
255 |
// set stderr |
255 |
// set stderr |
256 |
debug_log_target = stderr; |
256 |
debug_log_target = stderr; |
257 |
} |
257 |
} |
258 |
}; |
258 |
} |
259 |
|
259 |
|
260 |
#else /* DEBUG */ |
260 |
#else /* DEBUG */ |
261 |
void debug_log(const char *file, int line, const char *msgfmt, ...) |
261 |
void debug_log(const char *file, int line, const char *msgfmt, ...) |
Lines 263-266
void debug_log(const char *file, int line, const char *msgfmt, ...)
Link Here
|
263 |
|
263 |
|
264 |
void set_debug_flag(int v) |
264 |
void set_debug_flag(int v) |
265 |
{ } |
265 |
{ } |
|
|
266 |
|
267 |
void set_debug_log_from_config(config_t c) |
268 |
{ } |
266 |
#endif |
269 |
#endif |