mirror of
https://github.com/NotAShelf/goblin.git
synced 2024-11-01 11:01:17 +00:00
convert string conversion manually for config.Expire
Better than taking a string, or letting logrus convert it.
This commit is contained in:
parent
346864da03
commit
057bca7b02
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ package cmd
|
|||
import (
|
||||
"net/http"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/spf13/cobra"
|
||||
|
@ -43,7 +44,7 @@ var rootCmd = &cobra.Command{
|
|||
log.Infof("Template directory: %s", config.TemplateDir)
|
||||
log.Infof("Log directory: %s", config.LogDir)
|
||||
log.Infof("Paste storage directory: %s", config.PasteDir)
|
||||
log.Infof("Expire: %s", config.Expire)
|
||||
log.Infof("Expire: %s", strconv.Itoa(config.Expire))
|
||||
}
|
||||
|
||||
// Set the port based on the configuration or the flag
|
||||
|
|
Loading…
Reference in a new issue