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

Log on disk path of files served when using --debug #857

Closed
Carreau opened this issue Dec 13, 2015 · 13 comments
Closed

Log on disk path of files served when using --debug #857

Carreau opened this issue Dec 13, 2015 · 13 comments

Comments

@Carreau
Copy link
Member

Carreau commented Dec 13, 2015

cf #708 (comment),

That would be useful to debug some issues.

@Carreau Carreau modified the milestones: 5.0, 4.1 Dec 14, 2015
@Carreau Carreau modified the milestones: 5.0, 4.1 Dec 14, 2015
@Carreau
Copy link
Member Author

Carreau commented Dec 14, 2015

Annoying for 4.1 since the easy place where we can know the the requested path, and the file abspath is a class method on which we cannot access self.log

@CJSchell
Copy link

Hey guys wondering if this is still a priority and if I can help?

@takluyver
Copy link
Member

@Carreau do you remember if you were thinking of files served as static files, or files loaded through the contents manager?

@Rishabh0712
Copy link

Hi guys, I am a beginner and would like to contribute to it. Can you provide some info ??

@SeymourPashayev
Copy link

Is this still open up for grabs?

@kevin-bates
Copy link
Member

Sure @SeymourPashayev - anything that improves supportability is always welcome. Thank you for your interest.

@vaibhavarora102
Copy link

vaibhavarora102 commented Aug 23, 2021

Hi, @Carreau @SeymourPashayev is this issue still open?
if So, I would like to contribute to this issue, and can you please guide a bit more about this issue, what I understand till now is we need to locate the file address while debugging
and if possible the can you please provide the main file address upon which changes are to be made
thanks

@Carreau
Copy link
Member Author

Carreau commented Aug 25, 2021

I believe you will need too look at the following files in the jupyter_server repo:

https://github.com/jupyter-server/jupyter_server/blob/49d57729e8b22147b23047e24900371e610c190e/jupyter_server/files/handlers.py#L41

It should lead you to this method:

https://github.com/jupyter-server/jupyter_server/blob/49d57729e8b22147b23047e24900371e610c190e/jupyter_server/services/contents/filemanager.py#L376

And in there you will likely find mentions to _get_os_path in helper function and methods.

Around those lines, you want to try adding things like self.log.debug('Reading path from disk:', path) or similar to try to log which files we are actually trying to read.

@goyaldhara
Copy link

Hi, @Carreau Can I take this issue ?

@Carreau
Copy link
Member Author

Carreau commented Aug 28, 2021 via email

@jayeshsingh9767
Copy link
Contributor

@Carreau I have created the PR for this, could u please check. Also Enforce PR label is failing and I am not able to add label after PR creation, could someone please add label as Maintenance in this PR else I need to recreate another PR.

@jayeshsingh9767
Copy link
Contributor

@blink1073 can we close this issue?

@blink1073
Copy link
Contributor

Yes, thanks again!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests