-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syslog windows and non-windows quick fiX
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// +build !linux | ||
|
||
// This entire file is a dummy one to make sure all our cross platform builds work even if the underlying OS doesn't suppot some of the functionality | ||
// afpacket is a Linux-only feature, so we want the relevant function to technically "translate" to something here, which basically returns an error | ||
|
||
package main | ||
|
||
import ( | ||
log "github.com/sirupsen/logrus" | ||
) | ||
|
||
var syslog struct { | ||
Writer bool | ||
Dial bool | ||
LOG_WARNING bool | ||
LOG_DAEMON bool | ||
} | ||
|
||
func syslogOutput(sysConfig syslogConfig) { | ||
log.Error("No Syslog is supported in Windows") | ||
} |