Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
7.2.2
-
None
-
Untriaged
-
0
-
Yes
Description
The new "undeployed" message triggers subsequent log display when function emits no logs on the next deployment.
The addtion of the "undeploy" message and any future lifecycle messages (like for OnDeploy) should not trigger the display of a user application logs (if there were no user application logs messages emitted in the current deployment) we should instead have the pop-up
Function log - <<function name>>
|
No activity logged. Function has not called log() recently.
|
Somehow message like these seem to allow us to view all the old app log messages.
2023-12-01T11:41:55.097-08:00 [INFO] Function: test undeployed, reason: Function: test enabled, settings change requesting undeployment
|
We do see the correct pop-up at first but a Function that is silent will in about 20 seconds show the OLD logs.
To reproduce make the following function on travel-sample.inventory.hotel
function OnUpdate(doc, meta) {
|
log("Doc created/updated", meta.id);
|
}
|
deploy and undeploy
then modify the function to
function OnUpdate(doc, meta) {
|
var a = 1;
|
if (a === 0) {
|
log("should never happen");
|
}
|
}
|
deploy and then check the logs over and over it will be correct at first with the pop-up but then eventually you will see all the prior logs.