-
Notifications
You must be signed in to change notification settings - Fork 595
Expand file tree
/
Copy pathnull.py
More file actions
41 lines (30 loc) · 898 Bytes
/
null.py
File metadata and controls
41 lines (30 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# coding=utf-8
"""
Output the collected values to the debug log channel.
"""
from . Handler import Handler
class NullHandler(Handler):
"""
Implements the abstract Handler class, doing nothing except log
"""
def process(self, metric):
"""
Process a metric by doing nothing
"""
self.log.debug("Metric: %s", str(metric).rstrip().replace(' ', '\t'))
def get_default_config_help(self):
"""
Returns the help text for the configuration options for this handler
"""
config = super(NullHandler, self).get_default_config_help()
config.update({
})
return config
def get_default_config(self):
"""
Return the default config for the handler
"""
config = super(NullHandler, self).get_default_config()
config.update({
})
return config