mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
fix logging in start task msg (#1202)
* fix logging in start task msg * generate uuids using native crypto lib
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const assert = require('assert');
|
||||
const uuidv4 = require('uuid-random');
|
||||
const crypto = require('crypto');
|
||||
const {LifeCycleEvents, FS_UUID_SET_NAME} = require('./constants');
|
||||
const Emitter = require('events');
|
||||
const debug = require('debug')('jambonz:feature-server');
|
||||
@@ -130,7 +130,7 @@ module.exports = (logger) => {
|
||||
logger.info('disabling OPTIONS pings since we are running as a kubernetes service');
|
||||
const {srf} = require('../..');
|
||||
const {addToSet} = srf.locals.dbHelpers;
|
||||
const uuid = srf.locals.fsUUID = uuidv4();
|
||||
const uuid = srf.locals.fsUUID = crypto.randomUUID();
|
||||
|
||||
/* in case redis is restarted, re-insert our key every so often */
|
||||
setInterval(() => {
|
||||
|
||||
Reference in New Issue
Block a user