Update spelling errors

This commit is contained in:
pSox 2022-11-17 14:07:58 +00:00
parent 7fda4c0761
commit babcedf827
2 changed files with 19 additions and 16 deletions

11
main.go
View File

@ -4,7 +4,9 @@
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@ -17,14 +19,15 @@ package main
import (
"flag"
"net/http"
"os"
"git.st8l.com/dolysis/cups-exporter/pkg"
"github.com/go-logr/logr"
"github.com/go-logr/zapr"
"git.st8l.com/dolysis/cups-exporter/pkg"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"go.uber.org/zap"
"net/http"
"os"
)
type options struct {
@ -60,7 +63,7 @@ func main() {
</body>
</html>`))
if err != nil {
log.Info("An error occured while writing http response: %v", err)
log.Info("An error occurred while writing http response: %v", err)
}
})

View File

@ -58,7 +58,7 @@ func (e *Exporter) jobsMetrics(ch chan<- prometheus.Metric) error {
if value <= 9 && value >= 3 {
states[value]++
} else {
e.log.Info("Unknow job state : " + strconv.Itoa(int(value)))
e.log.Info("Unknown job state : " + strconv.Itoa(int(value)))
}
} else {
e.log.Info("job state attribute missing")