Fix build logs date/time
This commit is contained in:
parent
91ea6b5a45
commit
6a625ba9e6
2 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@
|
|||
<span class="id" bo-text="$index + container.index + 1" ng-if="!useTimestamps"></span>
|
||||
<span class="id" bo-text="formatDatetime(entry.datetime)" ng-if="useTimestamps"></span>
|
||||
<span class="message" bo-html="processANSI(entry.message, container)"></span>
|
||||
<span class="timestamp" bo-text="formatDatetime(entry.datetime)" ng-if="!useTimestamps"></span>
|
||||
<span class="timestamp" bo-text="formatDatetime(entry.data.datetime)" ng-if="!useTimestamps"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -143,12 +143,12 @@ class TestBuildLogs(RedisBuildLogs):
|
|||
if random.randint(0, 10) <= 8:
|
||||
premessage = {
|
||||
'message': '\x1b[91m' + get_sentence(),
|
||||
'datetime': str(datetime.datetime.now())
|
||||
{'data': 'datetime': str(datetime.datetime.now())}
|
||||
}
|
||||
|
||||
postmessage = {
|
||||
'message': '\x1b[0m',
|
||||
'datetime': str(datetime.datetime.now())
|
||||
{'data': 'datetime': str(datetime.datetime.now())}
|
||||
}
|
||||
|
||||
count = count - 2
|
||||
|
@ -157,7 +157,7 @@ class TestBuildLogs(RedisBuildLogs):
|
|||
def get_message():
|
||||
return {
|
||||
'message': get_sentence(),
|
||||
'datetime': str(datetime.datetime.now())
|
||||
{'data': 'datetime': str(datetime.datetime.now())}
|
||||
}
|
||||
|
||||
return others + [(1, get_message(), None) for _ in range(count)]
|
||||
|
|
Reference in a new issue