From 419d4185373da00cc5799038185897742fddcb15 Mon Sep 17 00:00:00 2001 From: "Dolf Schimmel (Freeaqingme)" Date: Sat, 18 Jun 2016 21:00:15 +0200 Subject: [PATCH] Expose log/LogRedirectStdOutToFile --- log/log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log/log.go b/log/log.go index b96cc50..0a47862 100644 --- a/log/log.go +++ b/log/log.go @@ -49,13 +49,13 @@ func Reopen(args string) { return } Log.Notice("Reopening log file per IPC request...") - logRedirectStdOutToFile(logFile) + LogRedirectStdOutToFile(logFile) Log.Notice("Reopened log file per IPC request") } // If there are any existing fd's (e.g. we're reopening logs), we rely // on garbage collection to clean them up for us. -func logRedirectStdOutToFile(logPath string) { +func LogRedirectStdOutToFile(logPath string) { if logPath == "" { Log.Fatal("Log Path not set") }