@yrpri/api 9.0.152 → 9.0.154

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/app.js +5 -5
  2. package/package.json +2 -2
package/app.js CHANGED
@@ -203,12 +203,12 @@ export class YourPrioritiesApi {
203
203
  this.completeRegisterUserLogin(user, loginProvider, req, done);
204
204
  }
205
205
  else {
206
- log.error("Did not find user for login registration", { userId });
206
+ log.crit("Did not find user for login registration", { userId });
207
207
  done();
208
208
  }
209
209
  })
210
210
  .catch((error) => {
211
- log.error("Error saving user for login registration", { error });
211
+ log.crit("Error saving user for login registration", { error });
212
212
  done();
213
213
  });
214
214
  }
@@ -307,7 +307,7 @@ export class YourPrioritiesApi {
307
307
  req.redisClient = this.redisClient;
308
308
  }
309
309
  else {
310
- log.error("Redis client get method not found or client not initialized");
310
+ log.crit("Redis client get method not found or client not initialized");
311
311
  }
312
312
  next();
313
313
  });
@@ -932,7 +932,7 @@ export class YourPrioritiesApi {
932
932
  });
933
933
  }
934
934
  if (status >= 500) {
935
- log.error("General Error", {
935
+ log.crit("General Error", {
936
936
  context: "generalError",
937
937
  user: req.user ? toJson(req.user) : null,
938
938
  err: err,
@@ -989,7 +989,7 @@ export class YourPrioritiesApi {
989
989
  else {
990
990
  server = this.app.listen(portNumber, function (err) {
991
991
  if (err) {
992
- log.error("Error listening on port", { err });
992
+ log.crit("Error listening on port", { err });
993
993
  }
994
994
  log.info("Your Priorities Platform API Server listening on port " +
995
995
  server.address().port +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yrpri/api",
3
- "version": "9.0.152",
3
+ "version": "9.0.154",
4
4
  "license": "MIT",
5
5
  "author": "Robert Bjarnason & Citizens Foundation",
6
6
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "@google-cloud/vertexai": "^1.10.0",
26
26
  "@google-cloud/vision": "^5.1.0",
27
27
  "@node-saml/passport-saml": "^5.0.1",
28
- "@policysynth/agents": "^1.3.123",
28
+ "@policysynth/agents": "^1.3.125",
29
29
  "async": "^3.2.6",
30
30
  "authorized": "^1.0.0",
31
31
  "aws-sdk": "^2.1692.0",