Resolve versions in plugin manager

This commit is contained in:
Zachary Yedidia
2019-02-04 22:26:06 -05:00
parent cf2d5dbfe2
commit 4497daaef1
7 changed files with 71 additions and 32 deletions

View File

@@ -3,6 +3,8 @@ package main
import (
"log"
"os"
"github.com/zyedidia/micro/internal/util"
)
// NullWriter simply sends writes into the void
@@ -15,7 +17,7 @@ func (NullWriter) Write(data []byte) (n int, err error) {
// InitLog sets up the debug log system for micro if it has been enabled by compile-time variables
func InitLog() {
if Debug == "ON" {
if util.Debug == "ON" {
f, err := os.OpenFile("log.txt", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)
if err != nil {
log.Fatalf("error opening file: %v", err)