create logs dir on startup
This commit is contained in:
+3
-1
@@ -51,7 +51,9 @@ func main() {
|
||||
reg := profile.NewProfileMutationRegistry()
|
||||
|
||||
profileDir := getEnv("PROFILE_DIR", "data/profiles")
|
||||
_ = os.MkdirAll(profileDir, 0755)
|
||||
if err := os.MkdirAll(profileDir, 0755); err != nil {
|
||||
log.Printf("warning: could not create profile data directory %s: %v", profileDir, err)
|
||||
}
|
||||
diskStorage := actor.NewDiskStorage[profile.ProfileGrain](profileDir, reg)
|
||||
|
||||
poolConfig := actor.GrainPoolConfig[profile.ProfileGrain]{
|
||||
|
||||
Reference in New Issue
Block a user