You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// DatabaseConfig is configuration relevant to the Database storage.
392
392
typeDatabaseConfigstruct {
393
-
Addresses []string`yaml:"address" json:"address" usage:"List of CockroachDB servers (username:password@address:port/dbname)."`
394
-
ConnMaxLifetimeMsint`yaml:"conn_max_lifetime_ms" json:"conn_max_lifetime_ms" usage:"Time in milliseconds to reuse a database connection before the connection is killed and a new one is created."`
395
-
MaxOpenConnsint`yaml:"max_open_conns" json:"max_open_conns" usage:"Maximum number of allowed open connections to the database."`
396
-
MaxIdleConnsint`yaml:"max_idle_conns" json:"max_idle_conns" usage:"Maximum number of allowed open but unused connections to the database."`
ConnMaxLifetimeMsint`yaml:"conn_max_lifetime_ms" json:"conn_max_lifetime_ms" usage:"Time in milliseconds to reuse a database connection before the connection is killed and a new one is created. Default 0 (unlimited)."`
395
+
MaxOpenConnsint`yaml:"max_open_conns" json:"max_open_conns" usage:"Maximum number of allowed open connections to the database. Default 100."`
396
+
MaxIdleConnsint`yaml:"max_idle_conns" json:"max_idle_conns" usage:"Maximum number of allowed open but unused connections to the database. Default 100."`
397
397
}
398
398
399
399
// NewDatabaseConfig creates a new DatabaseConfig struct.
logger.Error("Cannot find user with custom ID.", zap.Error(err), zap.String("customID", customID), zap.String("username", username), zap.Bool("create", create))
54
+
logger.Error("Error looking up user by custom ID.", zap.Error(err), zap.String("customID", customID), zap.String("username", username), zap.Bool("create", create))
55
55
return"", "", false, status.Error(codes.Internal, "Error finding user account.")
56
56
}
57
57
}
@@ -112,7 +112,7 @@ func AuthenticateDevice(ctx context.Context, logger *zap.Logger, db *sql.DB, dev
112
112
// No user account found.
113
113
//return "", "", status.Error(codes.NotFound, "Device ID not found.")
114
114
} else {
115
-
logger.Error("Cannot find user with device ID.", zap.Error(err), zap.String("deviceID", deviceID), zap.String("username", username), zap.Bool("create", create))
115
+
logger.Error("Error looking up user by device ID.", zap.Error(err), zap.String("deviceID", deviceID), zap.String("username", username), zap.Bool("create", create))
116
116
return"", "", false, status.Error(codes.Internal, "Error finding user account.")
117
117
}
118
118
}
@@ -125,7 +125,7 @@ func AuthenticateDevice(ctx context.Context, logger *zap.Logger, db *sql.DB, dev
logger.Error("Cannot find user with device ID.", zap.Error(err), zap.String("deviceID", deviceID), zap.String("username", username), zap.Bool("create", create))
128
+
logger.Error("Error looking up user by device ID.", zap.Error(err), zap.String("deviceID", deviceID), zap.String("username", username), zap.Bool("create", create))
129
129
return"", "", false, status.Error(codes.Internal, "Error finding user account.")
logger.Error("Cannot find user with email.", zap.Error(err), zap.String("email", email), zap.String("username", username), zap.Bool("create", create))
224
+
logger.Error("Error looking up user by email.", zap.Error(err), zap.String("email", email), zap.String("username", username), zap.Bool("create", create))
225
225
return"", "", false, status.Error(codes.Internal, "Error finding user account.")
226
226
}
227
227
}
@@ -293,7 +293,7 @@ func AuthenticateFacebook(ctx context.Context, logger *zap.Logger, db *sql.DB, c
293
293
iferr==sql.ErrNoRows {
294
294
found=false
295
295
} else {
296
-
logger.Error("Cannot find user with Facebook ID.", zap.Error(err), zap.String("facebookID", facebookProfile.ID), zap.String("username", username), zap.Bool("create", create))
296
+
logger.Error("Error looking up user by Facebook ID.", zap.Error(err), zap.String("facebookID", facebookProfile.ID), zap.String("username", username), zap.Bool("create", create))
297
297
return"", "", false, status.Error(codes.Internal, "Error finding user account.")
logger.Error("Cannot find user with GameCenter ID.", zap.Error(err), zap.String("gameCenterID", playerID), zap.String("username", username), zap.Bool("create", create))
362
+
logger.Error("Error looking up user by GameCenter ID.", zap.Error(err), zap.String("gameCenterID", playerID), zap.String("username", username), zap.Bool("create", create))
363
363
return"", "", false, status.Error(codes.Internal, "Error finding user account.")
logger.Error("Cannot find user with Google ID.", zap.Error(err), zap.String("googleID", googleProfile.Sub), zap.String("username", username), zap.Bool("create", create))
428
+
logger.Error("Error looking up user by Google ID.", zap.Error(err), zap.String("googleID", googleProfile.Sub), zap.String("username", username), zap.Bool("create", create))
429
429
return"", "", false, status.Error(codes.Internal, "Error finding user account.")
logger.Error("Cannot find user with Steam ID.", zap.Error(err), zap.String("steamID", steamID), zap.String("username", username), zap.Bool("create", create))
495
+
logger.Error("Error looking up user by Steam ID.", zap.Error(err), zap.String("steamID", steamID), zap.String("username", username), zap.Bool("create", create))
496
496
return"", "", false, status.Error(codes.Internal, "Error finding user account.")
0 commit comments