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

What should "Example API usage" do? #994

Closed
abcdenis opened this issue Jul 22, 2023 · 2 comments
Closed

What should "Example API usage" do? #994

abcdenis opened this issue Jul 22, 2023 · 2 comments

Comments

@abcdenis
Copy link
Contributor

abcdenis commented Jul 22, 2023

Hi,
what I did:

  • put "Example API usage" sample code into file and run with existing directory passed in command line
  • tried to add files to directory and changing existing files
  • trie to change logging level to DEBUG

What happens:
Nothing. No messages in console.

What I expected:
some log message as proof of work

Is there any other working sample available?
Thank you.

Python 3.10 @ macos 12.6.7

@abcdenis abcdenis changed the title What shoul "Example API usage" do? What should "Example API usage" do? Jul 22, 2023
@abcdenis
Copy link
Contributor Author

abcdenis commented Jul 22, 2023

Suddenly found that directory for testing has space inside it.
Running against other directory without space in path shows me some messages.

@abcdenis
Copy link
Contributor Author

abcdenis commented Jul 22, 2023

Finally found that I pass wrong path value thru PyCharm running configuration:

  • path has spaces escaped by backslash
  • I wrapped it with apostrophes
  • nothing worked

My bad.

Printing work directory to console could save time of the user.

abcdenis added a commit to abcdenis/watchdog that referenced this issue Jul 22, 2023
print working directory on start for easier error catching as mentioned in:

gorakhargosh#994
BoboTiG pushed a commit that referenced this issue Jul 28, 2023
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

1 participant