mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
add logs
This commit is contained in:
@@ -126,7 +126,7 @@ export class ViewEventPage implements OnInit {
|
|||||||
const loader = this.toastService.loading();
|
const loader = this.toastService.loading();
|
||||||
|
|
||||||
|
|
||||||
let res = await this.agendaDataRepository.getEventById(this.eventId)
|
let res = await this.agendaDataRepository.getEventById(this.eventId, tracing)
|
||||||
|
|
||||||
if(res.isOk()) {
|
if(res.isOk()) {
|
||||||
tracing.setAttribute('outcome', 'success')
|
tracing.setAttribute('outcome', 'success')
|
||||||
|
|||||||
@@ -57,11 +57,11 @@ export class AgendaDataRepositoryService {
|
|||||||
if(isHttpError(e)) {
|
if(isHttpError(e)) {
|
||||||
tracing?.setAttribute('status.code', e.status.toString())
|
tracing?.setAttribute('status.code', e.status.toString())
|
||||||
if (e.status == 400) {
|
if (e.status == 400) {
|
||||||
tracing.bugFlag()
|
tracing?.bugFlag()
|
||||||
tracing.setAttribute('outcome', 'failed')
|
tracing?.setAttribute('outcome', 'failed')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
tracing.bugFlag()
|
tracing?.bugFlag()
|
||||||
tracing.setAttribute('outcome', 'failed')
|
tracing.setAttribute('outcome', 'failed')
|
||||||
tracing?.setAttribute('map.error', 'true')
|
tracing?.setAttribute('map.error', 'true')
|
||||||
tracing?.setAttribute('map.error.context', JSON.stringify(e))
|
tracing?.setAttribute('map.error.context', JSON.stringify(e))
|
||||||
@@ -84,12 +84,12 @@ export class AgendaDataRepositoryService {
|
|||||||
if(isHttpError(e)) {
|
if(isHttpError(e)) {
|
||||||
tracing?.setAttribute('status.code', e.status.toString())
|
tracing?.setAttribute('status.code', e.status.toString())
|
||||||
if (e.status == 400) {
|
if (e.status == 400) {
|
||||||
tracing.bugFlag()
|
tracing?.bugFlag()
|
||||||
tracing.setAttribute('outcome', 'failed')
|
tracing?.setAttribute('outcome', 'failed')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
tracing.bugFlag()
|
tracing?.bugFlag()
|
||||||
tracing.setAttribute('outcome', 'failed')
|
tracing?.setAttribute('outcome', 'failed')
|
||||||
tracing?.setAttribute('map.error', 'true')
|
tracing?.setAttribute('map.error', 'true')
|
||||||
tracing?.setAttribute('map.error.context', JSON.stringify(e))
|
tracing?.setAttribute('map.error.context', JSON.stringify(e))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ export class ViewEventPage implements OnInit {
|
|||||||
setTimeZone() {
|
setTimeZone() {
|
||||||
this.TimeZoneString = this.loadedEvent.TimeZone
|
this.TimeZoneString = this.loadedEvent.TimeZone
|
||||||
}
|
}
|
||||||
@XTracerAsync({name:'AgendaPage/loadEvent', log: false, bugPrint: true})
|
@XTracerAsync({name:'ViewEventPage/loadEvent', log: false, bugPrint: true})
|
||||||
async loadEvent(tracing?: TracingType) {
|
async loadEvent(tracing?: TracingType) {
|
||||||
|
|
||||||
let res = await this.agendaDataRepository.getEventById(this.eventId, tracing)
|
let res = await this.agendaDataRepository.getEventById(this.eventId, tracing)
|
||||||
|
|||||||
Reference in New Issue
Block a user