File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 23
23
(let ((log-html (with-output-to-string (s)
24
24
(loop for entry across logs do
25
25
(let* ((log-data (gethash " data" entry))
26
- (url (gethash " url" log-data)))
26
+ (url (gethash " url" log-data))
27
+ (url (if (string= url " " )
28
+ " unknown"
29
+ url)))
27
30
(format s "
28
31
<li>
29
32
<div class=\" summary\" >
30
33
<span class=\" count\" >~a </span>
31
34
<span class=\" id\" >~a </span>
35
+ <span class=\" version\" >~a </span>
32
36
<span class=\" file\" >~a :~a </span>
33
37
</div>
34
38
<div class=\" expanded\" >
37
41
</li>"
38
42
(round (gethash " c" entry))
39
43
(gethash " id" entry)
44
+ (gethash " version" log-data)
40
45
url
41
46
(gethash " line" log-data)
42
47
(gethash " msg" log-data)))))))
Original file line number Diff line number Diff line change 2
2
3
3
(defun hash-log (log-data)
4
4
" Generate a hash for this log from its data. Used to de-dupe log records."
5
- (md5 (concatenate ' string (gethash " msg" log-data) (gethash " url" log-data) (gethash " line" log-data))))
5
+ (md5 (concatenate
6
+ ' string
7
+ (gethash " msg" log-data)
8
+ (gethash " url" log-data)
9
+ (gethash " line" log-data)
10
+ (gethash " version" log-data))))
6
11
7
12
(defafun get-logs (future) (num-entries)
8
13
" Get N log entries. Please never add a controller interface to this without
You can’t perform that action at this time.
0 commit comments