src/server/daemon/log.c

changeset 385
a1f4cb076d2f
parent 256
19259b6c5cf7
child 392
0aef555055ee
equal deleted inserted replaced
210:21274e5950af 385:a1f4cb076d2f
333 /* 333 /*
334 * access log 334 * access log
335 * This source file only manages access log files. IO is performed directly 335 * This source file only manages access log files. IO is performed directly
336 * by AddLog safs. 336 * by AddLog safs.
337 */ 337 */
338 LogFile* get_access_log_file(sstr_t file) { 338 LogFile* get_access_log_file(scstr_t file) {
339 // TODO: this looks dubious
340
339 if(!access_log_files) { 341 if(!access_log_files) {
340 access_log_files = ucx_map_new(4); 342 access_log_files = ucx_map_new(4);
341 } 343 }
342 344
343 if(file.ptr == NULL || file.length == 0) { 345 if(file.ptr == NULL || file.length == 0) {

mercurial