summaryrefslogtreecommitdiffhomepage
path: root/src/ruby
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2022-10-03 13:01:33 +0100
committerAndrew Clayton <andrew@digital-domain.net>2022-10-04 19:33:11 +0100
commitd806a90609e99cb4c8db71d620d5db3d26e83693 (patch)
tree3f2e7860a7913ef40ac17692e5da2392fb959b69 /src/ruby
parentdc9f592d6e7123d57924146dcbf1be80366bc98b (diff)
downloadunit-d806a90609e99cb4c8db71d620d5db3d26e83693.tar.gz
unit-d806a90609e99cb4c8db71d620d5db3d26e83693.tar.bz2
Ruby: used nxt_ruby_exception_log() in nxt_ruby_rack_init().
For consistency use nxt_ruby_exception_log() rather than nxt_alert() in nxt_ruby_rack_init(). Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/ruby')
-rw-r--r--src/ruby/nxt_ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ruby/nxt_ruby.c b/src/ruby/nxt_ruby.c
index cc287e0e..bcb48f6b 100644
--- a/src/ruby/nxt_ruby.c
+++ b/src/ruby/nxt_ruby.c
@@ -492,7 +492,7 @@ nxt_ruby_rack_init(nxt_ruby_rack_init_t *rack_init)
}
if (nxt_slow_path(RARRAY_LEN(rackup) < 1)) {
- nxt_alert(rack_init->task, "Ruby: Invalid rack config file");
+ nxt_ruby_exception_log(NULL, NXT_LOG_ALERT, "Invalid rack config file");
return Qnil;
}