callling fmt crashes GAE standard application

47 views
Skip to first unread message

pj

unread,
Sep 28, 2017, 8:00:44 PM9/28/17
to google-appengine-go
I have discovered that calling:

fmt.Println("X") crashes application with: 

"bad runtime process port"


if hte fmt.Println is in the main package's init() function.

Steven Buss

unread,
Sep 29, 2017, 2:30:09 PM9/29/17
to pj, google-appengine-go
This is a known behavior. It conflicts with some debugging/setup information that the runtime emits on startup. The only suggestion I have for you is to not call fmt.Println in init()

--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/0415e3a3-1198-4aca-848e-339d47cd8031%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pj

unread,
Sep 30, 2017, 12:45:03 AM9/30/17
to google-appengine-go
Using log to print out works though.
Reply all
Reply to author
Forward
0 new messages