Skip to content

Commit

Permalink
add missing module
Browse files Browse the repository at this point in the history
  • Loading branch information
dolph committed Feb 27, 2023
1 parent b958fec commit bd410f1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions logging.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package main

import "log"

func LogDestination(dest *Destination, msg string) {
log.Printf("%s %s %s", GetLocalIPs(), dest, msg)
}

func LogDestinationError(dest *Destination, msg string, err error) {
log.Printf("%s %s %s: %s", GetLocalIPs(), dest, msg, err)
}

func LogRoute(route *Route, msg string) {
log.Printf("%s %s", route, msg)
}

func LogRouteError(route *Route, msg string, err error) {
log.Printf("%s %s: %s", route, msg, err)
}

func LogRouteDestinationError(route *Route, dest *Destination, msg string, err error) {
log.Printf("%s %s %s: %s", route, dest, msg, err)
}

0 comments on commit bd410f1

Please sign in to comment.