mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Website: Update logged warnings in get-vpp-app-metadata (#38313)
Changes: - Updated the get-vpp-app-metadata action to not log warnings if a Fleet server sends a request with an invalid vpp token
This commit is contained in:
parent
ae73f90327
commit
19efc42871
1 changed files with 4 additions and 1 deletions
|
|
@ -122,7 +122,10 @@ module.exports = {
|
|||
}
|
||||
})
|
||||
.tolerate((err)=>{
|
||||
sails.log.warn(`When a Fleet instance sent a proxied request to the Apple App Store API, an error occured. Full error: ${require('util').inspect(err)}`);
|
||||
// Ignore invalid stoken vpp token responses when logging errors returned by the Apple API.
|
||||
if(err.statusCode !== 403) {
|
||||
sails.log.warn(`When a Fleet instance sent a proxied request to the Apple App Store API, an error occured. Full error: ${require('util').inspect(err)}`);
|
||||
}
|
||||
return err;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue