- fix log message
[plcapi.git] / PLC / Methods / BootNotifyOwners.py
index 418905d..958bf9f 100644 (file)
@@ -1,3 +1,4 @@
+from PLC.Debug import log
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -29,7 +30,7 @@ class BootNotifyOwners(Method):
     def call(self, auth, message_id, include_pis, include_techs, include_support):
         messages = Messages(self.api, [message_id], enabled = True)
         if not messages:
-            print >> log, "No such message template"
+            print >> log, "No such message template '%s'" % message_id
            return 1
         message = messages[0]