lib/semantic_logger/appender/mongodb.rb in semantic_logger-0.3.0 vs lib/semantic_logger/appender/mongodb.rb in semantic_logger-0.3.1
- old
+ new
@@ -146,9 +146,10 @@
:level => log.level,
}
document[:application] = application if application
document[:message] = self.class.strip_colorizing(log.message) if log.message
document[:duration] = log.duration if log.duration
+ document[:tags] = log.tags if log.tags && (log.tags.size > 0)
if log.payload
if log.payload.is_a?(Exception)
exception = log.payload
document[:payload] = {
\ No newline at end of file