X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetPersons.py;h=263c66359429dd72013a5c790c489cff6a417de7;hb=e70e20fdbececafef842ec7b330fd48db42e614e;hp=06da9f5b5006a995ff2af3e7a53832e0a5f92ebf;hpb=623f6dee74f2bd2cb6603b97b9302777d6a69f1f;p=plcapi.git diff --git a/PLC/Methods/GetPersons.py b/PLC/Methods/GetPersons.py index 06da9f5..263c663 100644 --- a/PLC/Methods/GetPersons.py +++ b/PLC/Methods/GetPersons.py @@ -5,6 +5,7 @@ from PLC.Filter import Filter from PLC.Persons import Person, Persons from PLC.Sites import Site, Sites from PLC.Auth import Auth +from PLC.Logger import logger hidden_fields = ['password', 'verification_key', 'verification_expires'] @@ -39,6 +40,10 @@ class GetPersons(Method): returns = [return_fields] def call(self, auth, person_filter = None, return_fields = None): + + logger.info("incoming GetPersons, filter={}, return fields={}" + .format(person_filter, return_fields)) + # If we are not admin, make sure to only return viewable accounts if isinstance(self.caller, Person) and \ 'admin' not in self.caller['roles']: