mirror of
https://github.com/restic/rest-server.git
synced 2026-09-26 05:51:24 -07:00
Report data directory on startup
This commit is contained in:
@@ -81,6 +81,7 @@ func runRoot(cmd *cobra.Command, args []string) error {
|
|||||||
log.SetFlags(0)
|
log.SetFlags(0)
|
||||||
|
|
||||||
log.Printf("rest-server %s compiled with %v on %v/%v\n", version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
|
log.Printf("rest-server %s compiled with %v on %v/%v\n", version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
|
||||||
|
log.Printf("Data directory: %s", config.path)
|
||||||
|
|
||||||
if config.cpuprofile != "" {
|
if config.cpuprofile != "" {
|
||||||
f, err := os.Create(config.cpuprofile)
|
f, err := os.Create(config.cpuprofile)
|
||||||
|
|||||||
Reference in New Issue
Block a user