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

Remove log during data query #3

Open
sebastien-tetaud opened this issue May 28, 2024 · 0 comments
Open

Remove log during data query #3

sebastien-tetaud opened this issue May 28, 2024 · 0 comments

Comments

@sebastien-tetaud
Copy link

Hello, I do have question related the log information. Is it possible to remove the verbose of the log when we perform a query?

Here is an example of log:

2024-05-28 07:56:38 - INFO - Key read from [/home/ubuntu/.polytopeapirc](https://vscode-remote+ssh-002dremote-002b162-002e19-002e93-002e31.vscode-resource.vscode-cdn.net/home/ubuntu/.polytopeapirc) 2024-05-28 07:56:38 - INFO - Sending request... {'request': 'activity: ScenarioMIP\n' 'class: d1\n' 'dataset: climate-dt\n' 'date: 20201201\n' 'experiment: SSP3-7.0\n' 'expver: 1\n' 'generation: 1\n' 'levtype: sfc\n' 'model: IFS-NEMO\n' 'param: 167\n' 'realization: 1\n' 'resolution: standard\n' 'stream: clte\n' "time: '0100'\n" 'type: fc\n', 'verb': 'retrieve'} 2024-05-28 07:56:38 - INFO - Polytope user key found in session cache for user ubuntu 2024-05-28 07:56:40 - INFO - Request accepted. Please poll http://polytope.lumi.apps.dte.destination-earth.eu/api/v1/requests/991ef27c-c0b8-4d75-ab8e-d924c6cf8357 for status 2024-05-28 07:56:40 - INFO - Polytope user key found in session cache for user ubuntu 2024-05-28 07:56:40 - INFO - Checking request status (991ef27c-c0b8-4d75-ab8e-d924c6cf8357)... 2024-05-28 07:56:41 - INFO - The current status of the request is 'queued' 2024-05-28 07:56:42 - INFO - The current status of the request is 'processing' 2024-05-28 07:56:46 - INFO - The current status of the request is 'processed'

I desire to do manage my own log and therefore would like to not see those logs in my script.

Many thanks for the nice API :)

Kind regards,
Sebastien Tetaud

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