mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
chore(logs): Update "SSO login email not found" log level to debug
* Update log level to debug * Fixed test.
This commit is contained in:
@@ -71,7 +71,7 @@ describe("DefaultLoginSuccessHandlerService", () => {
|
|||||||
it("should log error and return early", async () => {
|
it("should log error and return early", async () => {
|
||||||
await service.run(userId);
|
await service.run(userId);
|
||||||
|
|
||||||
expect(logService.error).toHaveBeenCalledWith("SSO login email not found.");
|
expect(logService.debug).toHaveBeenCalledWith("SSO login email not found.");
|
||||||
expect(ssoLoginService.updateSsoRequiredCache).not.toHaveBeenCalled();
|
expect(ssoLoginService.updateSsoRequiredCache).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export class DefaultLoginSuccessHandlerService implements LoginSuccessHandlerSer
|
|||||||
const ssoLoginEmail = await this.ssoLoginService.getSsoEmail();
|
const ssoLoginEmail = await this.ssoLoginService.getSsoEmail();
|
||||||
|
|
||||||
if (!ssoLoginEmail) {
|
if (!ssoLoginEmail) {
|
||||||
this.logService.error("SSO login email not found.");
|
this.logService.debug("SSO login email not found.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user