Skip to content

Commit

Permalink
Log without timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
corny committed May 14, 2024
1 parent 7389f81 commit fce2616
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,18 @@

package main

import "github.com/piotaixr/zfs-snapback/cmd"
import (
"log"
"os"

"github.com/piotaixr/zfs-snapback/cmd"
)

func main() {
// Disable timestamps in log output when journald is present
if os.Getenv("JOURNAL_STREAM") != "" {
log.SetFlags(0)
}

cmd.Execute()
}

0 comments on commit fce2616

Please sign in to comment.