~julian-edwards/maas/power-change-api-error-bug-1384001

« back to all changes in this revision

Viewing changes to src/maasserver/rpc/events.py

[r=rvb][bug=1379556][author=julian-edwards] Change the log warning about node events for non-existent nodes to a debug level message. There are *many* of these log messages when a node is enlisting and it's probing for TFTP files, and they are not useful to casual observers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        # The node doesn't exist, but we don't raise an exception - it's
69
69
        # entirely possible the cluster has started sending events for a
70
70
        # node that we don't know about yet.
71
 
        maaslog.warning(
 
71
        # This is most likely to happen when a new node is trying to
 
72
        # enlist.
 
73
        maaslog.debug(
72
74
            "Event '%s: %s' sent for non-existent node '%s'.",
73
75
            type_name, description, system_id)
74
76
        return
95
97
        # The node doesn't exist, but we don't raise an exception - it's
96
98
        # entirely possible the cluster has started sending events for a
97
99
        # node that we don't know about yet.
98
 
        maaslog.warning(
 
100
        # This is most likely to happen when a new node is trying to
 
101
        # enlist.
 
102
        maaslog.debug(
99
103
            "Event '%s: %s' sent for non-existent node with MAC "
100
104
            "address '%s'.",
101
105
            type_name, description, mac_address)