MCPcopy
hub / github.com/vulcand/vulcand / UpdateLogSeverity

Method UpdateLogSeverity

api/client.go:44–46  ·  view source on GitHub ↗
(s log.Level)

Source from the content-addressed store, hash-verified

42}
43
44func (c *Client) UpdateLogSeverity(s log.Level) error {
45 return c.PutForm(c.endpoint("log", "severity"), url.Values{"severity": {s.String()}})
46}
47
48func (c *Client) GetLogSeverity() (log.Level, error) {
49 data, err := c.Get(c.endpoint("log", "severity"), url.Values{})

Callers 3

TestSeverityMethod · 0.80
TestInvalidSeverityMethod · 0.80

Calls 3

PutFormMethod · 0.95
endpointMethod · 0.95
StringMethod · 0.45

Tested by 2

TestSeverityMethod · 0.64
TestInvalidSeverityMethod · 0.64