Skip to content

Remove log during data query #3

@sebastien-tetaud

Description

@sebastien-tetaud

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions