Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added session.info and -working-directory #254

Merged
merged 11 commits into from
Jul 9, 2019

Conversation

raduchis
Copy link
Contributor

@raduchis raduchis commented Jul 5, 2019

Removed home dependency for the directory where the storage is saved. Now they work in the current directory

sasurobert
sasurobert previously approved these changes Jul 7, 2019
@iulianpascalau iulianpascalau self-requested a review July 7, 2019 13:41
@iulianpascalau iulianpascalau added the type:bug Something isn't working label Jul 7, 2019
iulianpascalau
iulianpascalau previously approved these changes Jul 7, 2019
Copy link
Contributor

@iulianpascalau iulianpascalau left a comment

Choose a reason for hiding this comment

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

Minor stuff. Can be left as it is.

config/path.go Outdated Show resolved Hide resolved
@raduchis raduchis dismissed stale reviews from iulianpascalau and sasurobert via e97288a July 8, 2019 16:40
cmd/node/main.go Outdated Show resolved Hide resolved
cmd/node/main.go Outdated Show resolved Hide resolved
config/path.go Outdated Show resolved Hide resolved
cmd/node/main.go Outdated Show resolved Hide resolved
cmd/node/main.go Outdated
@@ -173,8 +178,14 @@ VERSION:
Value: math.MaxUint32,
}

//TODO remove uniqueID
uniqueID = ""
wd, _ = os.Getwd()
Copy link
Contributor

Choose a reason for hiding this comment

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

treat the error.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

really don't know how to do that... it's in the var declaration...

Copy link
Contributor Author

@raduchis raduchis Jul 9, 2019

Choose a reason for hiding this comment

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

moved to main method

cmd/node/main.go Outdated Show resolved Hide resolved
config/path.go Outdated Show resolved Hide resolved
cmd/node/main.go Outdated Show resolved Hide resolved
iulianpascalau
iulianpascalau previously approved these changes Jul 9, 2019
sasurobert
sasurobert previously approved these changes Jul 9, 2019
session.info moved to currentdir/logs
@raduchis raduchis dismissed stale reviews from sasurobert and iulianpascalau via d426378 July 9, 2019 10:30
cmd/node/main.go Outdated
os.MkdirAll(workingDir, os.ModePerm)
logDirectory := filepath.Join(workingDir, defaultLogPath)

os.MkdirAll(logDirectory, os.ModePerm)
Copy link
Contributor

Choose a reason for hiding this comment

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

unhandled error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

sasurobert
sasurobert previously approved these changes Jul 9, 2019
@raduchis raduchis changed the title Removed os.Getenv("home") and added os.getwd for the current directory Added session.info and -working-directory Jul 9, 2019
@raduchis raduchis merged commit f007b84 into master Jul 9, 2019
@raduchis raduchis deleted the bug/EN-2845-Create-directory-on-windows branch July 9, 2019 14:14
SebastianMarian pushed a commit that referenced this pull request Jul 9, 2019
* Added --working-directory and subfolders DB, logs, stats
added session.info txt

* Updated shardId for metachain
session.info moved to currentdir/logs

* Handled error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants