Skip to content

Commit d744079

Browse files
committed
added timestamps argument to logs get method
1 parent d545007 commit d744079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/logs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const Client = require('./client-base');
22

33
class Logs extends Client {
4-
async get({ podName, containerName, tailLines }) {
5-
return this._prefix.namespaces(this._namespace).pods(podName).log.get({ qs: { container: containerName, tailLines } });
4+
async get({ podName, containerName, tailLines, timestamps = false }) {
5+
return this._prefix.namespaces(this._namespace).pods(podName).log.get({ qs: { container: containerName, tailLines, timestamps } });
66
}
77
}
88

0 commit comments

Comments
 (0)