arcpy.GetMessages returns empty [BUG]

Discussion created by 024fpt on Feb 24, 2014
Latest reply on Feb 25, 2014 by xander_bakker
I am trying to access the messages that were logged throughout a script.

message = arcpy.GetMessages()
print message  # always empty

The above is always empty.

According to the documentation [http://resources.arcgis.com/en/help/main/10.1/index.html#/AddMessage/018v00000007000000/]

Creates a geoprocessing informative message (Severity=0) that can be accessed with any of the GetMessages functions.

What am I missing here?

I'm starting to think this is either a bug or something not documented.