Skip to content

Commit 16deeac

Browse files
committed
Update visuals
1 parent 4087ff3 commit 16deeac

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/main/java/com/microsoft/azure/samples/perfsimjava/service/MetricsService.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ public void init() {
9090
EventLogEntry.EventType.SERVER_STARTED,
9191
String.format("Server started (JVM: %d, PID: %d)", jvmStartTime, processId)
9292
);
93-
94-
// Log MIT License disclaimer
95-
eventLogService.warn(
96-
EventLogEntry.EventType.DISCLAIMER,
97-
"\u2696\uFE0F This software is provided \"AS IS\" without warranty. The author shall not be liable for any damages arising from use or misuse. Deploy only in isolated, non-production environments. Licensed under MIT License."
98-
);
9993
}
10094

10195
/**

src/main/resources/static/js/dashboard.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,10 +812,17 @@ const Dashboard = (function() {
812812
* Displays the MIT license disclaimer in the event log (shown on every page load)
813813
*/
814814
function showDisclaimer() {
815+
// Add Line 2 first so Line 1 appears on top (newer entries appear at top)
815816
addEventToLog({
816817
level: 'WARN',
817818
event: 'DISCLAIMER',
818-
message: '⚖️ This software is provided "AS IS" without warranty. The author shall not be liable for any damages arising from use or misuse. Deploy only in isolated, non-production environments. Licensed under MIT License.',
819+
message: '⚖️ Deploy only in isolated, non-production environments. Licensed under MIT License.',
820+
timestamp: new Date().toISOString()
821+
});
822+
addEventToLog({
823+
level: 'WARN',
824+
event: 'DISCLAIMER',
825+
message: '⚖️ This software is provided "AS IS" without warranty. The author shall not be liable for any damages arising from use or misuse.',
819826
timestamp: new Date().toISOString()
820827
});
821828
}

0 commit comments

Comments
 (0)