Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix undefined issue while logging from node-loggly-bulk library #11

Merged
merged 3 commits into from Jun 6, 2017
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

handled JSON data

  • Loading branch information
Shwetajain148
Shwetajain148 committed May 30, 2017
commit 59a0019997c95fa0deb34b2a553b836e1a8e7b0d
@@ -113,8 +113,9 @@ Loggly.prototype.log = function (msg, tags, callback) {
if (typeof(msg) === 'string') {
msg = { message: msg };
}

msg.message = truncateLargeMessage(msg.message)
if(msg.message) {
msg.message = truncateLargeMessage(msg.message);
}
if (!callback && typeof tags === 'function') {
callback = tags;
tags = null;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.