Some linter cleanup

This commit is contained in:
Gabe Kangas
2021-06-29 10:21:00 -07:00
parent ab3bbd59bf
commit 12104978e8
10 changed files with 19 additions and 19 deletions

View File

@@ -25,13 +25,14 @@ type OCLogger struct {
}
var Logger *OCLogger
var _level logrus.Level
// Setup configures our custom logging destinations.
func Setup(enableDebugOptions bool, enableVerboseLogging bool) {
// Create the logging directory if needed
if !utils.DoesFileExists(getLogFilePath()) {
os.Mkdir(getLogFilePath(), 0700)
if err := os.Mkdir(getLogFilePath(), 0700); err != nil {
logger.Errorln("unable to create directory", getLogFilePath(), err)
}
}
// Write logs to a file