File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ func main() {
76
76
if err := app .Run (os .Args ); err != nil {
77
77
// if we exit very early we'll not have set up the logger yet
78
78
if logger == nil {
79
- jsonFmt := & promslog.AllowedFormat {}
79
+ jsonFmt := & promslog.Format {}
80
80
_ = jsonFmt .Set ("json" )
81
81
logger = promslog .New (& promslog.Config {Format : jsonFmt })
82
82
}
@@ -354,10 +354,10 @@ func newLogger(format, level string) *slog.Logger {
354
354
// If flag parsing was successful, then we know that format and level
355
355
// are both valid options; no need to error check their returns, just
356
356
// set their values.
357
- f := & promslog.AllowedFormat {}
357
+ f := & promslog.Format {}
358
358
_ = f .Set (format )
359
359
360
- lvl := & promslog.AllowedLevel {}
360
+ lvl := & promslog.Level {}
361
361
_ = lvl .Set (level )
362
362
363
363
return promslog .New (& promslog.Config {Format : f , Level : lvl })
Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ func TestScrapeRunner_Run(t *testing.T) {
541
541
MetadataRunFunc : tc .metadataRunFunc ,
542
542
CloudwatchRunFunc : tc .cloudwatchRunFunc ,
543
543
}
544
- lvl := & promslog.AllowedLevel {}
544
+ lvl := & promslog.Level {}
545
545
_ = lvl .Set ("debug" )
546
546
sr := job .NewScraper (promslog .New (& promslog.Config {Level : lvl }), tc .jobsCfg , & rf )
547
547
resources , metrics , errs := sr .Scrape (context .Background ())
You can’t perform that action at this time.
0 commit comments