Skip to content

Commit e671ebe

Browse files
feat(logs): add log timestamps (#10)
1 parent 14198b3 commit e671ebe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.2
1+
2.4.0

src/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ async function fetchAndSaveData(type, namespace) {
130130
await Promise.all(resources.items.map(async (item) => {
131131
let log;
132132
try {
133-
log = await coreApi.namespace(namespace).getPodLog(item.metadata.name, { container: item.spec.containers[0].name });
133+
log = await coreApi.namespace(namespace).getPodLog(item.metadata.name, {
134+
container: item.spec.containers[0].name,
135+
timestamps: true,
136+
});
134137
} catch (error) {
135138
console.error(`Failed to get items for ${item.metadata.name}:`, error);
136139
log = error;

0 commit comments

Comments
 (0)