aboutsummaryrefslogtreecommitdiff
path: root/cryptfs/log_go1.4.go
diff options
context:
space:
mode:
Diffstat (limited to 'cryptfs/log_go1.4.go')
-rw-r--r--cryptfs/log_go1.4.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cryptfs/log_go1.4.go b/cryptfs/log_go1.4.go
new file mode 100644
index 0000000..6bc6457
--- /dev/null
+++ b/cryptfs/log_go1.4.go
@@ -0,0 +1,8 @@
+// +build !go1.5
+// = go 1.4 or lower
+
+package cryptfs
+
+func (l *toggledLogger) SwitchToSyslog(p syslog.Priority) {
+ Debug.Printf("Cannot switch to syslog - need Go 1.5 or higher")
+}