Skip to content

Commit

Permalink
Add logging and enable in dev (#139)
Browse files Browse the repository at this point in the history
* Test dev

* Log job
  • Loading branch information
andersrognstad authored Sep 21, 2023
1 parent 5983fae commit b2c0765
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .nais/naiserator-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ spec:
- name: OUTDATED_DIALOGMOTEKANDIDAT_CUTOFF
value: "2023-06-01"
- name: OUTDATED_DIALOGMOTEKANDIDAT_CRONJOB_ENABLED
value: "false"
value: "true"
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package no.nav.syfo.cronjob.dialogmotekandidat

import net.logstash.logback.argument.StructuredArguments
import no.nav.syfo.cronjob.Cronjob
import no.nav.syfo.cronjob.CronjobResult
import no.nav.syfo.dialogmotekandidat.DialogmotekandidatService
Expand Down Expand Up @@ -34,6 +35,11 @@ class DialogmotekandidatOutdatedCronjob(
}
}

log.info(
"Completed dialogmote-kandidat-outdated job with result: {}, {}",
StructuredArguments.keyValue("failed", result.failed),
StructuredArguments.keyValue("updated", result.updated),
)
return result
}

Expand Down

0 comments on commit b2c0765

Please sign in to comment.