Skip to content

Conversation

@ace-n
Copy link
Contributor

@ace-n ace-n commented Apr 1, 2021

40 minutes -> 4 minutes. 😉

(The secret was to add a time limit filter to the logs calls!)

@ace-n ace-n requested review from bshaffer and grayside April 1, 2021 02:34
@ace-n ace-n requested a review from a team as a code owner April 1, 2021 02:34
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Apr 1, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Apr 1, 2021
$fiveMinAgo = date(\DateTime::RFC3339, strtotime('-5 minutes'));
$filter = sprintf(
'resource.type = "gae_app" AND severity = "%s" AND logName = "%s"',
'resource.type="gae_app" severity="%s" logName="%s" timestamp>="%s"',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice tweak! Good to see Functions testing tricks spread out.

@bshaffer bshaffer merged commit 1c51e80 into master Apr 2, 2021
@bshaffer bshaffer deleted the gae-logs-fast branch April 2, 2021 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants