Skip to main content
logger(ranks, log_levels, options=)[source]

Convenience function to change log levels of some or all GPUdb ranks.

Parameters

ranks (list of ints) –

A list containing the ranks to which to apply the new log levels.

log_levels (dict of str to str) –

A map where the keys dictate which log’s levels to change, and the values dictate what the new log levels will be.

options (dict of str to str) –

Optional parameters. Default value is an empty dict ( ).

Returns

A dict with the following entries–

status (str) –

The status of the endpoint (‘OK’ or ‘ERROR’).

log_levels (map of str to str) –

A map of each log level to its respective value