Skip to content

Commit

Permalink
Log permission issues as warn w/o full stack (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeijer authored May 20, 2024
1 parent 0df6b1f commit a2047ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/storage/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ function WebSocket(storage, mainLogger, gmeConfig, gmeAuth, workerManager) {

function getErrorHandler(callback) {
return function (err) {
if (err.message.includes('Not authorized to')) {
logger.debug(err.stack, '\n', (new Error('Caught by')).stack);
if (err.message.includes('Not authorized to') || err.message.includes('Project does not exist')) {
logger.warn(err.message);
} else {
logger.error(err.stack, '\n', (new Error('Caught by')).stack);
}
Expand Down

0 comments on commit a2047ee

Please sign in to comment.