remove "compiled on" string
It makes compiling more complicated and unreproducible binaries.
This commit is contained in:
parent
d6d0a22ece
commit
014a5390ed
@ -36,8 +36,6 @@ type opFlags struct {
|
|||||||
Profile string
|
Profile string
|
||||||
}
|
}
|
||||||
|
|
||||||
var compiledOn string
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
loggerLevel := zap.NewAtomicLevel()
|
loggerLevel := zap.NewAtomicLevel()
|
||||||
// Logging levels: ("debug", "info", "warn", "error", "dpanic", "panic", and "fatal").
|
// Logging levels: ("debug", "info", "warn", "error", "dpanic", "panic", and "fatal").
|
||||||
@ -59,7 +57,6 @@ func main() {
|
|||||||
zap.L().Info("magneticod v0.12.0 has been started.")
|
zap.L().Info("magneticod v0.12.0 has been started.")
|
||||||
zap.L().Info("Copyright (C) 2017-2020 Mert Bora ALPER <bora@boramalper.org>.")
|
zap.L().Info("Copyright (C) 2017-2020 Mert Bora ALPER <bora@boramalper.org>.")
|
||||||
zap.L().Info("Dedicated to Cemile Binay, in whose hands I thrived.")
|
zap.L().Info("Dedicated to Cemile Binay, in whose hands I thrived.")
|
||||||
zap.S().Infof("Compiled on %s", compiledOn)
|
|
||||||
|
|
||||||
switch opFlags.Verbosity {
|
switch opFlags.Verbosity {
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -30,8 +30,6 @@ import (
|
|||||||
"github.com/boramalper/magnetico/pkg/persistence"
|
"github.com/boramalper/magnetico/pkg/persistence"
|
||||||
)
|
)
|
||||||
|
|
||||||
var compiledOn string
|
|
||||||
|
|
||||||
// Set a Decoder instance as a package global, because it caches
|
// Set a Decoder instance as a package global, because it caches
|
||||||
// meta-data about structs, and an instance can be shared safely.
|
// meta-data about structs, and an instance can be shared safely.
|
||||||
var decoder = schema.NewDecoder()
|
var decoder = schema.NewDecoder()
|
||||||
@ -64,7 +62,6 @@ func main() {
|
|||||||
zap.L().Info("magneticow v0.12.0 has been started.")
|
zap.L().Info("magneticow v0.12.0 has been started.")
|
||||||
zap.L().Info("Copyright (C) 2017-2020 Mert Bora ALPER <bora@boramalper.org>.")
|
zap.L().Info("Copyright (C) 2017-2020 Mert Bora ALPER <bora@boramalper.org>.")
|
||||||
zap.L().Info("Dedicated to Cemile Binay, in whose hands I thrived.")
|
zap.L().Info("Dedicated to Cemile Binay, in whose hands I thrived.")
|
||||||
zap.S().Infof("Compiled on %s", compiledOn)
|
|
||||||
|
|
||||||
if err := parseFlags(); err != nil {
|
if err := parseFlags(); err != nil {
|
||||||
zap.S().Errorf("error while parsing flags: %s", err.Error())
|
zap.S().Errorf("error while parsing flags: %s", err.Error())
|
||||||
|
Loading…
Reference in New Issue
Block a user