File: NullSender.py

package info (click to toggle)
python-applicationinsights 0.11.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 876 kB
  • sloc: python: 5,948; makefile: 151; sh: 77
file content (17 lines) | stat: -rw-r--r-- 445 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from .SenderBase import SenderBase

class NullSender(SenderBase):
    """A sender class that does not send data.  Useful for debug mode, when
    telemetry may not be desired, with no changes to the object model.
    """
    def __init__(self, *args, **kwargs):
        super(NullSender, self).__init__("nil-endpoint", *args, **kwargs)

    def send(self, data):
        pass

    def start(self):
        pass

    def stop(self):
        pass