-
Notifications
You must be signed in to change notification settings - Fork 198
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
Conversation
There was a problem hiding this 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.
added session.info txt
…windows' into bug/EN-2845-Create-directory-on-windows
cmd/node/main.go
Outdated
@@ -173,8 +178,14 @@ VERSION: | |||
Value: math.MaxUint32, | |||
} | |||
|
|||
//TODO remove uniqueID | |||
uniqueID = "" | |||
wd, _ = os.Getwd() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
treat the error.
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to main method
session.info moved to currentdir/logs
cmd/node/main.go
Outdated
os.MkdirAll(workingDir, os.ModePerm) | ||
logDirectory := filepath.Join(workingDir, defaultLogPath) | ||
|
||
os.MkdirAll(logDirectory, os.ModePerm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unhandled error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
* Added --working-directory and subfolders DB, logs, stats added session.info txt * Updated shardId for metachain session.info moved to currentdir/logs * Handled error
Removed home dependency for the directory where the storage is saved. Now they work in the current directory