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

Logging Configuration #506

Closed
paperpunk opened this issue Jan 6, 2017 · 4 comments
Closed

Logging Configuration #506

paperpunk opened this issue Jan 6, 2017 · 4 comments

Comments

@paperpunk
Copy link

Hello,

From the configuring logging section of the docs, I was assuming that if i set the requests = false, the request: part of the log statement will stop printing out but that did not happen. I still have the

client: 127.0.0.1, server: , request: "POST /blah/blah", host: "localhost:8080"

printing out on each line. Can you explain a bit more about what each of these two options controls?

Is there a way to configure the lapis logs, specifically the things mentions above, the context: and the beginning of the log line where the file name and the name of the function are printed?

2017/01/06 00:51:49 [notice] 4511#0: *11 [lua] utils.lua:5: log():  --this part

Thank you!

@leafo
Copy link
Owner

leafo commented Jan 6, 2017

the part on the left hand side of the log can not be disabled as far as I know, it's built into the nginx lua module.

Can you show me that part of your config that you have to disable logging for requests.

I just tested it with (in moonscript)

  logging {
    requests: false
  }

and it worked as intended

@leafo
Copy link
Owner

leafo commented Jan 20, 2017

Closing this for now, if you figure out a way to reproduce the issue then please open the issue with more information. Thanks

@leafo leafo closed this as completed Jan 20, 2017
@paperpunk
Copy link
Author

paperpunk commented Jan 24, 2017

Thanks for checking into this, yes, I just tried it again and it still doesn't seem to work for me.

this is my config (in config.lua)

 logging = {
      requests = false
 }

and these are the logs:

01/23 22:41:58 [notice] 29043#0: *31 [lua] utils.lua:6: request_id=8a505aa85fa590264c8e70da7ad9dcd2	successfully disabled server_id=3 in upstream=default, client: 127.0.0.1, server: , request: "POST /server/disable?upstream_name=default&server_ip=10.10.10.10 HTTP/1.1", host: "localhost:8080"
2017/

@paperpunk
Copy link
Author

I edited my response, thought it worked at first but the realized that it still didn't.

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

No branches or pull requests

2 participants