summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_thread_mutex.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-03-05 17:32:50 +0300
committerValentin Bartenev <vbart@nginx.com>2018-03-05 17:32:50 +0300
commit912a49c6091c1fd9b630d2e0966f0fe1b97a3e42 (patch)
tree5581735807436384796dfd9deff336865c8372e4 /src/nxt_thread_mutex.c
parentf2090bce21e4fb47d11f992a76ef5c4da74c3233 (diff)
downloadunit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.gz
unit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.bz2
Reduced number of critical log levels.
Diffstat (limited to 'src/nxt_thread_mutex.c')
-rw-r--r--src/nxt_thread_mutex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_thread_mutex.c b/src/nxt_thread_mutex.c
index 10c08c2a..472a69f0 100644
--- a/src/nxt_thread_mutex.c
+++ b/src/nxt_thread_mutex.c
@@ -85,20 +85,20 @@ nxt_thread_mutex_create(nxt_thread_mutex_t *mtx)
err = pthread_mutexattr_init(&attr);
if (err != 0) {
- nxt_thread_log_emerg("pthread_mutexattr_init() failed %E", err);
+ nxt_thread_log_alert("pthread_mutexattr_init() failed %E", err);
return NXT_ERROR;
}
err = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK);
if (err != 0) {
- nxt_thread_log_emerg("pthread_mutexattr_settype"
+ nxt_thread_log_alert("pthread_mutexattr_settype"
"(PTHREAD_MUTEX_ERRORCHECK) failed %E", err);
return NXT_ERROR;
}
err = pthread_mutex_init(mtx, &attr);
if (err != 0) {
- nxt_thread_log_emerg("pthread_mutex_init() failed %E", err);
+ nxt_thread_log_alert("pthread_mutex_init() failed %E", err);
return NXT_ERROR;
}