comparison libfdcore/core.c @ 1325:ae81cd81ab09

Log shutdown message at normal level (instead of fatal => error).
author Thomas Klausner <tk@giga.or.at>
date Mon, 27 Nov 2017 15:16:30 +0100
parents cec3e9b579e1
children 239ba25870d8
comparison
equal deleted inserted replaced
1324:729e5074839f 1325:ae81cd81ab09
324 /* Initialize shutdown of the framework. This is not blocking. */ 324 /* Initialize shutdown of the framework. This is not blocking. */
325 int fd_core_shutdown(void) 325 int fd_core_shutdown(void)
326 { 326 {
327 enum core_state cur_state = core_state_get(); 327 enum core_state cur_state = core_state_get();
328 328
329 LOG_F("Initiating freeDiameter shutdown sequence (%d)", cur_state); 329 LOG_N("Initiating freeDiameter shutdown sequence (%d)", cur_state);
330 330
331 if (cur_state < CORE_RUNNING) { 331 if (cur_state < CORE_RUNNING) {
332 /* Calling application must make sure the initialization is not ongoing in a separate thread... */ 332 /* Calling application must make sure the initialization is not ongoing in a separate thread... */
333 if (pthread_mutex_lock(&core_lock) != 0) { 333 if (pthread_mutex_lock(&core_lock) != 0) {
334 /* This function must not be called asynchronously from fd_core_parseconf / fd_core_start ! Please review your main app design */ 334 /* This function must not be called asynchronously from fd_core_parseconf / fd_core_start ! Please review your main app design */
"Welcome to our mercurial repository"