Remove extra spaces between logs
This commit is contained in:
parent
eb8de02ed0
commit
a118fc1017
|
@ -66,6 +66,14 @@ class Console extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logClassName(item) {
|
||||||
|
return classnames('m-0', {
|
||||||
|
'text-info': item.logLevel === 'debug',
|
||||||
|
'text-danger': item.logLevel === 'error',
|
||||||
|
'text-warning': item.logLevel === 'warning'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
renderTabs() {
|
renderTabs() {
|
||||||
const {processLogs, processes} = this.props;
|
const {processLogs, processes} = this.props;
|
||||||
|
|
||||||
|
@ -82,14 +90,14 @@ class Console extends Component {
|
||||||
if (this.isJsonObject(item)) {
|
if (this.isJsonObject(item)) {
|
||||||
return(
|
return(
|
||||||
<div>
|
<div>
|
||||||
<p key={i} className={item.logLevel} dangerouslySetInnerHTML={{__html: (convert.toHtml(item.command || ""))}}></p>
|
<p key={i} className={this.logClassName(item)} dangerouslySetInnerHTML={{__html: (convert.toHtml(item.command || ""))}}></p>
|
||||||
<ReactJson src={JSON.parse(item.result)} theme="monokai" sortKeys={true} collapsed={1} />
|
<ReactJson src={JSON.parse(item.result)} theme="monokai" sortKeys={true} collapsed={1} />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<p key={i} className={item.logLevel} dangerouslySetInnerHTML={{__html: (convert.toHtml(item.command || "") + convert.toHtml(item.msg))}}></p>
|
<p key={i} className={this.logClassName(item)} dangerouslySetInnerHTML={{__html: (convert.toHtml(item.command || "") + convert.toHtml(item.msg))}}></p>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue