aboutsummaryrefslogtreecommitdiff
path: root/internal/conf
diff options
context:
space:
mode:
Diffstat (limited to 'internal/conf')
-rw-r--r--internal/conf/computed.go6
-rw-r--r--internal/conf/log.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/internal/conf/computed.go b/internal/conf/computed.go
index 64eb322d..95acf64f 100644
--- a/internal/conf/computed.go
+++ b/internal/conf/computed.go
@@ -53,7 +53,7 @@ var (
workDirOnce sync.Once
)
-// WorkDir returns the absolute path of work directory. It reads the value of envrionment
+// WorkDir returns the absolute path of work directory. It reads the value of environment
// variable GOGS_WORK_DIR. When not set, it uses the directory where the application's
// binary is located.
func WorkDir() string {
@@ -75,8 +75,8 @@ var (
)
// CustomDir returns the absolute path of the custom directory that contains local overrides.
-// It reads the value of envrionment variable GOGS_CUSTOM. When not set, it uses the work
-// directory returned by WorkDir fucntion.
+// It reads the value of environment variable GOGS_CUSTOM. When not set, it uses the work
+// directory returned by WorkDir function.
func CustomDir() string {
customDirOnce.Do(func() {
customDir = os.Getenv("GOGS_CUSTOM")
diff --git a/internal/conf/log.go b/internal/conf/log.go
index e6865a41..bde739df 100644
--- a/internal/conf/log.go
+++ b/internal/conf/log.go
@@ -32,7 +32,7 @@ var Log *logConf
// argument "hookMode" is true, it only initializes the root path for log files.
// NOTE: Because we always create a console logger as the primary logger at init time,
// we need to remove it in case the user doesn't configure to use it after the logging
-// service is initalized.
+// service is initialized.
func initLogConf(cfg *ini.File, hookMode bool) (_ *logConf, hasConsole bool, _ error) {
rootPath := cfg.Section("log").Key("ROOT_PATH").MustString(filepath.Join(WorkDir(), "log"))
if hookMode {