Skip to content

Commit

Permalink
[server] log less errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTugarev authored and roboquat committed May 20, 2022
1 parent b765e67 commit 79f2c21
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class BitbucketServerFileProvider implements FileProvider {
const result = await this.api.fetchContent(user, `/${repoKind}/${owner}/repos/${name}/raw/${path}`);
return result;
} catch (err) {
console.error({ userId: user.id }, err);
console.debug({ userId: user.id }, err);
}
}
}
2 changes: 1 addition & 1 deletion components/server/src/bitbucket/bitbucket-file-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class BitbucketFileProvider implements FileProvider {
).data;
return contents as string;
} catch (err) {
log.error({ userId: user.id }, err);
log.debug({ userId: user.id }, err);
}
}
}
2 changes: 1 addition & 1 deletion components/server/src/github/file-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class GithubFileProvider implements FileProvider {
);
return contents;
} catch (err) {
log.error(err);
log.debug(err);
}
}
}
2 changes: 1 addition & 1 deletion components/server/src/gitlab/file-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class GitlabFileProvider implements FileProvider {
const result = await this.gitlabApi.getRawContents(user, org, name, commitish, path);
return result;
} catch (error) {
log.error(error);
log.debug(error);
}
}
}

0 comments on commit 79f2c21

Please sign in to comment.