mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 11:59:58 +02:00
Add more logs to debug oauth-client error
This commit is contained in:
parent
97583d0023
commit
89b9eab5a7
1 changed files with 5 additions and 1 deletions
|
@ -26,7 +26,11 @@ async function getLocalClient (req: express.Request, res: express.Response, next
|
||||||
|
|
||||||
// Don't make this check if this is a test instance
|
// Don't make this check if this is a test instance
|
||||||
if (!isTestOrDevInstance() && req.get('host') !== headerHostShouldBe) {
|
if (!isTestOrDevInstance() && req.get('host') !== headerHostShouldBe) {
|
||||||
logger.info('Getting client tokens for host %s is forbidden (expected %s).', req.get('host'), headerHostShouldBe)
|
logger.info(
|
||||||
|
'Getting client tokens for host %s is forbidden (expected %s).', req.get('host'), headerHostShouldBe,
|
||||||
|
{ webserverConfig: CONFIG.WEBSERVER }
|
||||||
|
)
|
||||||
|
|
||||||
return res.fail({
|
return res.fail({
|
||||||
status: HttpStatusCode.FORBIDDEN_403,
|
status: HttpStatusCode.FORBIDDEN_403,
|
||||||
message: `Getting client tokens for host ${req.get('host')} is forbidden`
|
message: `Getting client tokens for host ${req.get('host')} is forbidden`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue