I have a GCE app consisting of a single Python script that has some long running functions (most of these are querying databases and sending the results somewhere). It seems that when the script hangs on one of these longer running tasks that nothing is printed to Stackdriver Logging, even print()
statements that come before the place the script is hanging. This seems like bug in Compute Engine or Stackdriver and makes debugging scripts very difficult (e.g. I can't see where the last successful print
statement occurred).
I'd prefer this bug to just be fixed instead of having to add the logging
module as it seems there's a good amount of overhead to set that up.