On 5/08/2014 11:32 PM, [email protected] wrote:
> Hello,
> 
> is there anybody on the list that could explain me how to enable debug
> logging in Sync Server rsp. Storage Server?

Sorry, this dropped off my radar for a bit.

> My problem about denied access to /storage/1.5/1/info/collections is not
> solved.
> 
> I'd like to see what is happening in Sync / Storage Server.

There should be *some* additional logging taking place from the python
app.  Are there any additional log lines in the apache error log?  I
would expect to see something along the lines of:

    "Authentication Failed: invalid hawk id"

If not, you could try adding this to your syncserver.ini to enable
additional logging:

    [loggers]
    keys = root

    [handlers]
    keys = console

    [formatters]
    keys = generic

    [logger_root]
    level = DEBUG
    handlers = console

    [handler_console]
    class = StreamHandler
    args = (sys.stdout,)
    formatter = generic


If this doesn't show up anything, you may need to add some additional
logging by hand.  A good place to start is the "check_signature"
function in this file:

  ./local/lib/python2.7/site-packages/hawkauthlib/__init__.py

Add some debugging log or print statements, to see if you can confirm
whether this function is getting invoked, whether it's returning True or
False, and why.


  Cheers,

    Ryan
_______________________________________________
Sync-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/sync-dev

Reply via email to