logging to include name of the authorized user

Hi,
I think I've stumbled upon a similar problem as described in the mail thread "Get identity of previously-authenticated user". I want to log some of the actions inside render_XXX methods, I also need these logs to include the avatar's name. Is it really so that the only way of doing that is to modify ctors of the resource tree and pass avatarID as a parameter in the requestAvatar method?
thanks, Ilja

On 07:09 am, ilja.livenson@gmail.com wrote:
Hi,
I think I've stumbled upon a similar problem as described in the mail thread "Get identity of previously-authenticated user". I want to log some of the actions inside render_XXX methods, I also need these logs to include the avatar's name. Is it really so that the only way of doing that is to modify ctors of the resource tree and pass avatarID as a parameter in the requestAvatar method?
I'm sure it's not the only way, but it's the way I recommend.
Jean-Paul
participants (2)
-
exarkun@twistedmatrix.com
-
Ilja Livenson