Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print doesn't work when debugging code in nginx #17

Open
saks opened this issue Sep 23, 2016 · 0 comments
Open

print doesn't work when debugging code in nginx #17

saks opened this issue Sep 23, 2016 · 0 comments

Comments

@saks
Copy link
Owner

saks commented Sep 23, 2016

from standalone console:

$ make repl 
[1] ngx(timer)> print(123)
123
=> true

but when debugging nginx:

# nginx -c /tmp/ngx.conf 
... log messages here ...
[1] ngx(content)> print(123)
2016/09/23 12:52:05 [notice] 155#0: *1 [lua] [C]:-1: 123, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", host: "172.17.0.2:8080"
=> nil
[2] ngx(content)> 

print output appears in logs.
Would be nice if print can always print as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant