Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Avoiding generating log folder when running tests. #101

Merged
merged 3 commits into from
Jan 7, 2017
Merged

Avoiding generating log folder when running tests. #101

merged 3 commits into from
Jan 7, 2017

Conversation

paganotoni
Copy link
Member

This is related to #17.

cc: @markbates.

@@ -43,8 +43,14 @@ func NewOptions() Options {
func optionsWithDefaults(opts Options) Options {
opts.Env = defaults.String(opts.Env, defaults.String(os.Getenv("GO_ENV"), "development"))
opts.LogLevel = defaults.String(opts.LogLevel, "debug")
pwd, _ := os.Getwd()
opts.LogDir = defaults.String(opts.LogDir, filepath.Join(pwd, "logs"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we can keep this line, and just override it below with the if "test" check. no need for if/else.

@paganotoni paganotoni changed the title Bugfix/avoid logs in test Avoiding generating log folder when running tests. Jan 7, 2017
@markbates markbates merged commit a11e721 into gobuffalo:master Jan 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants