add more detailed logs to email sending

This commit is contained in:
2023-07-17 10:23:14 +02:00
parent 8d33fce53d
commit 85300ba46b

View File

@@ -47,6 +47,8 @@ export class UsersService {
}) })
} catch (e) { } catch (e) {
this.logger.error(e?.message || e) this.logger.error(e?.message || e)
this.logger.error(e?.stack || e)
this.logger.error(JSON.stringify(e))
} }
} }
@@ -67,7 +69,9 @@ export class UsersService {
subject: 'Password recovery', subject: 'Password recovery',
}) })
} catch (e) { } catch (e) {
this.logger.error(e) this.logger.error(e?.message || e)
this.logger.error(e?.stack || e)
this.logger.error(JSON.stringify(e))
} }
} }