X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FBoot.py;h=001211e09933c4b6bf8eaf79b448a9c3dc747e54;hb=HEAD;hp=5926bbc5181045155b3cb8f559e4342e2a199227;hpb=f5cd72e35593c96b9996ab4e49674cccc7525c48;p=plcapi.git diff --git a/PLC/Boot.py b/PLC/Boot.py index 5926bbc..001211e 100644 --- a/PLC/Boot.py +++ b/PLC/Boot.py @@ -4,12 +4,9 @@ # Mark Huang # Copyright (C) 2007 The Trustees of Princeton University # -# $Id$ -# $URL$ -# from PLC.Faults import * -from PLC.Debug import log +from PLC.Logger import logger from PLC.Messages import Message, Messages from PLC.Persons import Person, Persons from PLC.Sites import Site, Sites @@ -20,7 +17,7 @@ def notify_owners(method, node, message_id, fault = None): messages = Messages(method.api, [message_id], enabled = True) if not messages: - print >> log, "No such message template '%s'" % message_id + logger.error("No such message template '%s'" % message_id) return 1 message = messages[0]