Skip to content

Commit

Permalink
Kommenter ut skriving til Influx for å roe logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathiamu authored Oct 3, 2024
1 parent 280ea8f commit 3b5f2c4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ class Frontendlogger(val metricsClient: MetricsClient) {

@PostMapping("/event")
fun skrivEventTilInflux(@RequestBody event: FrontendEvent) {
val toInflux = Event(event.name + ".event")
/* val toInflux = Event(event.name + ".event")
event.tags?.forEach(toInflux::addTagToReport)
event.fields?.forEach(toInflux::addFieldToReport)
toInflux.tags["environment"] = if (EnvironmentUtils.isProduction().orElse(false)) "p" else "q1"
if (!EnvironmentUtils.isProduction().orElse(false)) {
log.info("Skriver event til influx: " + eventToString(event.name, toInflux))
}
metricsClient.report(toInflux)
metricsClient.report(toInflux) */
}

class FrontendEvent {
Expand Down

0 comments on commit 3b5f2c4

Please sign in to comment.