From 7ea73dff46c916401217f949bf807b5db009db71 Mon Sep 17 00:00:00 2001 From: KJHJason Date: Mon, 20 May 2024 20:41:08 +0800 Subject: [PATCH] changed logger init to InitLogger due to github actions perms issue when building --- constants/constants.go | 2 +- logger/log.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/constants/constants.go b/constants/constants.go index da103d9..a829e22 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -8,7 +8,7 @@ import ( const ( DEBUG_MODE = false // Will save a copy of all JSON response from the API DEFAULT_PERMS = 0755 // Owner: rwx, Group: rx, Others: rx - VERSION = "1.1.3" + VERSION = "1.1.4" MAX_RETRY_DELAY = 3 MIN_RETRY_DELAY = 1 HTTP3_MAX_RETRY = 2 diff --git a/logger/log.go b/logger/log.go index 5d5f39b..bbe5782 100644 --- a/logger/log.go +++ b/logger/log.go @@ -34,7 +34,7 @@ var ( ) ) -func init() { +func InitLogger() { // create the logs directory if it does not exist os.MkdirAll(logFolder, LOG_PERMS)