Overview
Comment: | Updated to log message at startup |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
0802341b53daf2cd8f1c9f4f279932e5 |
User & Date: | rkeene on 2014-02-08 08:52:25 |
Other Links: | manifest | tags |
Context
2014-02-11
| ||
04:26 | Updated to generate log entry only after transfer completes check-in: 273835a798 user: rkeene tags: trunk | |
2014-02-08
| ||
08:52 | Updated to log message at startup check-in: 0802341b53 user: rkeene tags: trunk | |
08:46 | Log formatting changes check-in: 5decd7a269 user: rkeene tags: trunk | |
Changes
Modified filed.c from [3095917664] to [5335f1802e].
︙ | |||
261 262 263 264 265 266 267 | 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | - - - - - - - - - - - - - - - - | free(prev); } } return(NULL); } |
︙ | |||
304 305 306 307 308 309 310 | 288 289 290 291 292 293 294 295 296 297 298 299 300 301 | - | pthread_mutex_unlock(&filed_log_msg_list_mutex); pthread_cond_signal(&filed_log_msg_list_ready); return; } |
︙ | |||
328 329 330 331 332 333 334 335 336 337 338 339 340 341 | 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 | + + + + + + + + + + + + + + + + + + | if (retval == NULL) { retval = "<unknown>"; } return(retval); } static int filed_logging_thread_init(FILE *logfp) { struct filed_logging_thread_args *args; pthread_t thread_id; args = malloc(sizeof(*args)); args->fp = logfp; filed_log_msg_list = NULL; pthread_mutex_init(&filed_log_msg_list_mutex, NULL); pthread_create(&thread_id, NULL, filed_logging_thread, args); filed_log_msg("START"); return(0); } #endif /* Format time per RFC2616 */ static char *filed_format_time(char *buffer, size_t buffer_len, const time_t timeinfo) { struct tm timeinfo_tm, *timeinfo_tm_p; timeinfo_tm_p = gmtime_r(&timeinfo, &timeinfo_tm); |
︙ |