Skip to content

Commit

Permalink
UI: fix log trace areas with special characters (#17780)
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis authored Dec 18, 2024
1 parent 67c0d7a commit e7997fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions assets/js/views/Log.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default {
},
},
watch: {
selectedAreas() {
areas() {
this.updateLogs();
},
level() {
Expand Down Expand Up @@ -339,7 +339,7 @@ export default {
--opacity: 1;
opacity: var(--opacity);
animation-name: fadeIn;
animation-duration: 1s;
animation-duration: var(--transition-duration-fast);
animation-fill-mode: forwards;
animation-timing-function: ease-out;
text-indent: 1rem hanging;
Expand All @@ -361,9 +361,9 @@ export default {
color: var(--bs-danger);
}
.log-debug {
--opacity: 0.6;
--opacity: 0.7;
}
.log-trace {
--opacity: 0.4;
--opacity: 0.5;
}
</style>
2 changes: 1 addition & 1 deletion util/logstash/element.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

type element string

var re = regexp.MustCompile(`^\[([a-zA-Z0-9-]+)\s*\] (\w+) `)
var re = regexp.MustCompile(`^\[(.+?)\s*\] (\w+) `)

func (e element) areaLevel() (string, jww.Threshold) {
m := re.FindAllStringSubmatch(string(e), 1)
Expand Down

0 comments on commit e7997fe

Please sign in to comment.