adjust log directory
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"math"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
@@ -17,6 +18,7 @@ import (
|
||||
"github.com/paulmach/orb/planar"
|
||||
"starwiz.cn/sjy01/image-proc/pkg/auxilary"
|
||||
"starwiz.cn/sjy01/image-proc/pkg/calculator"
|
||||
"starwiz.cn/sjy01/image-proc/pkg/config"
|
||||
"starwiz.cn/sjy01/image-proc/pkg/payload"
|
||||
"starwiz.cn/sjy01/image-proc/pkg/utils"
|
||||
)
|
||||
@@ -66,7 +68,7 @@ func (r *Registrator) AuxPrint() {
|
||||
fcPos84.Features = append(fcPos84.Features, geojson.NewFeature(point))
|
||||
}
|
||||
data, _ := json.Marshal(fcPos84)
|
||||
f, _ := os.Create(fmt.Sprintf("log/%s_aux_pos_84.geojson", r.Params.DataId))
|
||||
f, _ := os.Create(filepath.Join(config.GCONFIG.Log.LogDir, fmt.Sprintf("%s_aux_pos_84.geojson", r.Params.DataId)))
|
||||
defer f.Close()
|
||||
f.Write(data)
|
||||
|
||||
@@ -82,7 +84,7 @@ func (r *Registrator) AuxPrint() {
|
||||
fcPos84Interp.Features = append(fcPos84Interp.Features, geojson.NewFeature(point))
|
||||
}
|
||||
data, _ = json.Marshal(fcPos84Interp)
|
||||
f, _ = os.Create(fmt.Sprintf("log/%s_aux_pos_84_interp.geojson", r.Params.DataId))
|
||||
f, _ = os.Create(filepath.Join(config.GCONFIG.Log.LogDir, fmt.Sprintf("%s_aux_pos_84_interp.geojson", r.Params.DataId)))
|
||||
defer f.Close()
|
||||
f.Write(data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user