File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
jit-binding-server/src/main/kotlin/io/github/typesafegithub/workflows/jitbindingserver Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,6 @@ import io.micrometer.prometheusmetrics.PrometheusMeterRegistry
22
22
import java.time.Duration
23
23
import kotlin.time.Duration.Companion.hours
24
24
25
- private val prometheusRegistry =
26
- PrometheusMeterRegistry (
27
- object : PrometheusConfig {
28
- override fun get (key : String ): String? = null
29
-
30
- override fun prefix (): String = " github-actions-binding-server"
31
-
32
- @Suppress(" MagicNumber" )
33
- override fun step () = Duration .ofSeconds(10 )
34
- },
35
- )
36
25
private val logger =
37
26
System
38
27
/*
@@ -45,6 +34,18 @@ private val logger =
45
34
.setProperty(" java.util.logging.manager" , org.apache.logging.log4j.jul.LogManager ::class .java.name)
46
35
.let { logger { } }
47
36
37
+ private val prometheusRegistry =
38
+ PrometheusMeterRegistry (
39
+ object : PrometheusConfig {
40
+ override fun get (key : String ): String? = null
41
+
42
+ override fun prefix (): String = " github-actions-binding-server"
43
+
44
+ @Suppress(" MagicNumber" )
45
+ override fun step () = Duration .ofSeconds(10 )
46
+ },
47
+ )
48
+
48
49
fun main () {
49
50
Thread .setDefaultUncaughtExceptionHandler { thread, throwable ->
50
51
logger.error(throwable) { " Uncaught exception in thread $thread " }
You can’t perform that action at this time.
0 commit comments