Skip to content

Commit 42c66cd

Browse files
committed
change log file path to be platform agnostic
1 parent d0b7fbd commit 42c66cd

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

config/config_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package config
33
import (
44
"reflect"
55
"testing"
6+
//. "github.com/mch1307/gomotics/config"
67
)
78

89
func TestInitialize(t *testing.T) {
@@ -11,7 +12,7 @@ func TestInitialize(t *testing.T) {
1112
cfg.NhcConfig.Port = 8000
1213
cfg.ServerConfig.ListenPort = 8081
1314
cfg.ServerConfig.LogLevel = "DEBUG"
14-
cfg.ServerConfig.LogPath = "/tmp"
15+
cfg.ServerConfig.LogPath = "."
1516

1617
tests := []struct {
1718
name string

config/test.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[server]
22
ListenPort = 8081
33
LogLevel = "DEBUG"
4-
LogPath = "/tmp"
4+
LogPath = "."
55

66
[nhc]
77
host = "localhost"

0 commit comments

Comments
 (0)