Fork me on GitHub
#pedestal
<
2017-06-06
>
mike_ananev20:06:11

@mtnygard hi! have some troubles with io.pedestal.log.I have custom StatsD reporter and i want to init default-recorder. As mentioned in doc's I set JVM var to "-Dio.pedestal.log.defaultMetricsRecorder=verita.util.metrics/rc"

mike_ananev20:06:46

where rc is 0-arity fn which returns custom-recorder var

mike_ananev20:06:20

during repl start i've got stacktrace

mike_ananev20:06:45

I can resolve ((resolve (symbol "verita.util.metrics/rc")))

mike_ananev20:06:16

in other repl without init of io.pedestal.log.defaultMetricsRecorder and it returns MetricsRegistry object

mike_ananev20:06:49

but if init, then code ((resolve (symbol ns-fn-str)))) in default-recorder is crushed

mike_ananev20:06:20

in this example https://github.com/pedestal/pedestal/blob/master/samples/helloworld-metrics/src/helloworld_metrics/service.clj i can't find the place where io.pedestal.log.defaultMetricsRecorder is inited