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

Add logging #3

Open
msrb opened this issue May 1, 2017 · 3 comments
Open

Add logging #3

msrb opened this issue May 1, 2017 · 3 comments

Comments

@msrb
Copy link
Member

msrb commented May 1, 2017

LSP agent in Che doesn't listen on server's stderr, so logs printed there don't show anywhere. The viable option could be sending them to a file.

Note there already is some very basic file logging, but the file is nowhere to be found in Che workspace. I guess the current working directory is not writeable for the server (use $HOME maybe?).

@humaton humaton self-assigned this Jun 1, 2017
@invincibleJai
Copy link
Collaborator

@msrb log file bayesian.log is created in current working directory (i.e. /projects/ for Che workspaces) , have tested with #9 it'll be created in (/home/user/che/ls-bayesian) for Che workspaces
screen shot 2017-06-07 at 10 57 57 am

@samuzzal-choudhury
Copy link
Contributor

@invincibleJai this sounds good to me as Mario pointed out that the log location /home/user/che/ is going to be in accordance with other agents.

@msrb I think this issue can be used for working on redirecting server's stderr to the log file. Please correct me if you think otherwise.

@humaton humaton removed their assignment Sep 4, 2018
@jeffmaury
Copy link
Contributor

Would be fine if we can tune the log level through another env var. Also note the log file is an absolute UNIX file path that causes isssues while debugging on Windows

dgpatelgit pushed a commit to dgpatelgit/fabric8-analytics-lsp-server that referenced this issue Sep 10, 2020
…-setup

initial setup to run test on VScode extension
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

5 participants