%files
%defattr(-,root,root,-)
%dir %{_datadir}/plc_api
+%dir /var/log/omf/
%{_datadir}/plc_api/*
%{_bindir}/plcsh
%{php_extension_dir}/xmlrpc.so
/usr/bin/omf_slicemgr.py*
/usr/bin/reset_xmpp_pubsub_nodes.py*
+
%changelog
* Sun Mar 14 2010 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - PLCAPI-5.0-4
- do not use UpdateNode for handling the 'hrn' tag - should fix refresh peer & foreign nodes more generally
def __init__(self):
self.config = Config("/etc/planetlab/plc_config")
- self.log = open("/var/log/omf/plc_slice_calls.log", "a")
+ # this was only for debugging, no need to log all method calls here -baris
+ # self.log = open("/var/log/omf/plc_slice_calls.log", "a")
+ self.log = None
+
def logit(self, call, args, kwargs, data, slice):
+ if not self.log: return
+
self.log.write("%s : args: %s kwargs: %s\n" % (call, args, kwargs))
self.log.write("data: %s\n" % data)
self.log.write("%s\n\n" % slice)