Skip to content

Conversation

@kolargol
Copy link
Contributor

See: #26

@kolargol
Copy link
Contributor Author

This also include one commit that improve hostname handling (not rely on system command but use golang function)


func init() {
logFile, err := os.OpenFile(`/tmp/onetouch.log`, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0600)
user, err := user.Current()
Copy link
Owner

Choose a reason for hiding this comment

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

this fails in some systems, especially before go 1.11. so we need to fallback. see utils/helpers.go for an example or we can store this log somewhere in the user's home

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok so i suppose best would be store users logs in $HOME, best in ~/.onetouch.log ?

Copy link
Owner

Choose a reason for hiding this comment

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

I think ~/.onetouch/logs/ would be a better place

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants