Open andreaceccanti opened 4 years ago
@djw8605 - can you take a look at this?
I believe, for the Python library, we hooked into the underlying standard Python logging system. Perhaps we can ask users to provide a callback that they implement (and ship a default to log to stdout)?
The functions themselves provide error text as a returned string. For example:
The error is returned in the error_msg
variable. You are correct, the library doesn't log anything to stdout, but it does provide error messages back to the calling code.
We could ship the log to stdout? Or, we can rely on the calling code to log the errors, as we do in xrootd-scitokens:
The scitokens-cpp library provides no logging about the reasons behind a token verification failure. This makes debugging authorization problems complex.