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
When I fired up the server using the example I got bunyanCW is undefined. I changed the request var from createCWStream to bunyanCW and it fired up and worked just fine reporting to cloudwatch. However, when I fired off an event I got this error.
OperationAbortedException: A conflicting operation is currently in progress against this resource. Please try again.
Here is my current setup
var bunyan = require('bunyan');
var bunyanCW = require('bunyan-cloudwatch');
var extend = require('extend');
/**
* Provide a common base logger for our application
*
* @param {string} component The (sub)component we are logging for
* @param {Object} defaults Any 'default' or 'common' values to include in the logger
* @return {Object} The logger
*/
module.exports = function (component, defaults) {
var stream = bunyanCW({
logGroupName: 'reactor-group',
logStreamName: 'reactor-stream',
region: 'us-east-1'
});
// var streams = clone(config.streams);
var options = {
name: 'reactor.core',
streams: [
{
stream: process.stdout,
level: 'debug'
},
{
stream: stream,
type: 'raw'
}
]
};
if (typeof component === 'string') {
options.component = component;
}
if (typeof defaults === 'object') {
options = extend(false, options, defaults);
}
var logger = bunyan.createLogger(options);
var logLevel;
if (process.env.LOGLEVEL) {
logLevel = process.env.LOGLEVEL;
} else {
logLevel = (process.env.NODE_ENV === 'development' ? 'debug' : 'info');
}
logger.level(logLevel);
return logger;
};
The text was updated successfully, but these errors were encountered:
When I fired up the server using the example I got bunyanCW is undefined. I changed the request var from createCWStream to bunyanCW and it fired up and worked just fine reporting to cloudwatch. However, when I fired off an event I got this error.
Here is my current setup
The text was updated successfully, but these errors were encountered: