src/server/daemon/log.c

branch
config
changeset 256
19259b6c5cf7
parent 176
f2268fcbe487
child 392
0aef555055ee
equal deleted inserted replaced
255:b5d15a4a19f5 256:19259b6c5cf7
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