Add version and software name in first message during startup, fix typo in log message during config loading.
This commit is contained in:
@@ -40,7 +40,7 @@ func main() {
|
||||
log.Fatalf("Failed to create server: %v", err)
|
||||
}
|
||||
|
||||
log.Infof("Starting server at %s", server.Addr)
|
||||
log.Infof("Starting backer version %s at %s", version, server.Addr)
|
||||
|
||||
if backer.C.NoHTTPS {
|
||||
if err := server.ListenAndServe(); err != nil && err != http.ErrServerClosed {
|
||||
|
||||
@@ -146,7 +146,7 @@ func LoadConfig(path string) error {
|
||||
|
||||
switch C.DefaultCompression {
|
||||
case "gzip", "pgzip", "bzip2", "xz", "lz4", "zstd":
|
||||
log.Infof("Using %s as defailt compression algorithm", C.DefaultCompression)
|
||||
log.Infof("Using %s as default compression algorithm", C.DefaultCompression)
|
||||
default:
|
||||
return fmt.Errorf("Config option default_compression must be gzip, bzip2, zstd, lz4, xz or pgzip, got %s", C.DefaultCompression)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user