Use Python logging system for emitting log messages when running via the Python API
Fixes #141
Adds a cli_only kwarg to emit some log messages only when running from the CLI.
@cbrnr Care to test if this works? I don't think the logger honors existing tqdm output, but maybe this is not a problem – I haven't tested it yet
Oh, it seems I've created a nice circular import :(
Import problem should be fixed now but I don't get log messages. @cbrnr feel free to investigate, I'm a bit busy for the next week or so
Problems:
- [ ] Repeated messages regarding using the token
- [ ] Token isn't even needed for this dataset
- [ ] HTTP status codes
The token messages also appear on main? Or are they directly caused by changes in this PR?
The token messages also appear on
main? Or are they directly caused by changes in this PR?
I don't know. I would believe it also appears in main.
OK, so the problems you listed (at least the first two) are not related to this PR and should probably fixed in another PR.
I believe so. Any help in verifying and tracking this would be appreciated!
Nice! Once we have a changelog message, we can merge