GetMessages() in Pro not helpful

760
3
03-13-2019 11:26 AM
ChrisSnyder
Regular Contributor III

Finally dabbling in porting some geoprocessing scripts to Pro.

But... one of my 1st complainants is that arcpy.GetMessages() used to return pretty robust info in Desktop. For example, the buffer tool in Desktop would give something like:

Executing: Buffer D:\csny490\lidar_derivatives\processing_data\rs_hydro_processing\tile_2\tile_2.gdb\sl_trans D:\csny490\lidar_derivatives\processing_data\rs_hydro_processing\tile_2\tile_2.gdb\sl_trans_buff BUFF_DIST FULL ROUND NONE # PLANAR
Start Time: Wed Mar  6 09:20:33 2019
Succeeded at Wed Mar  6 09:20:43 2019 (Elapsed Time: 10.00 seconds)

Now in Pro, it just yields:

"Start Time: Wednesday, March 13, 2019 11:14:49 AM
Succeeded at Wednesday, March 13, 2019 11:14:50 AM (Elapsed Time: 10.31 seconds)"

Maybe there is some setting I am missing, or... Any insights?!?

3 Replies
DanPatterson_Retired
MVP Esteemed Contributor

at the bottom after a tool's run, right click and select 'View Details'... your inputs etc are listed there and the messages are separated.

I just generate my own messages as I go along if I need something extra

0 Kudos
ChrisSnyder
Regular Contributor III

Thanks Dan, but I mean more in the context of a log file for a geoprocessing script. Tool name, parameters, etc...

Basically I used to get this in Desktop:

Mon Mar 04 18:00:44 2019 - Starting run of script file: \\dnr\divisions\FR_DATA\forest_info_2\gis\projects\synthetic_streams_westside\scripts\step_11_implement_stream_model_worker_v1061.py
Mon Mar 04 18:00:44 2019 - Recording logfile to: D:\csny490\lidar_derivatives\step_11_implement_stream_model_worker_v1061_tile_4179_20190304180044.log
Mon Mar 04 18:00:44 2019 - TEMP directory set to D:\csny490\lidar_derivatives\processing_data\rs_hydro_processing\tile_4179
Mon Mar 04 18:00:44 2019 - Checked out Spatial Analyst License
Mon Mar 04 18:00:44 2019 - Checked out 3D Analyst License
Mon Mar 04 18:00:51 2019 - Executing: CreateFileGDB D:\csny490\lidar_derivatives\processing_data\rs_hydro_processing\tile_4179 tile_4179 CURRENT
Start Time: Mon Mar 4 18:00:51 2019
Succeeded at Mon Mar 4 18:00:51 2019 (Elapsed Time: 0.51 seconds)
Mon Mar 04 18:00:52 2019 - Executing: Select D:\csny490\lidar_derivatives\processing_data\rs_hydro_processing\fishnet.shp D:\csny490\lidar_derivatives\processing_data\rs_hydro_processing\tile_4179\tile_4179.gdb\tile_4179 "TILE_ID = 4179"
Start Time: Mon Mar 4 18:00:51 2019
Succeeded at Mon Mar 4 18:00:52 2019 (Elapsed Time: 0.76 seconds)
Mon Mar 04 18:01:01 2019 - Con took 7.84943149986 seconds...
Mon Mar 04 18:01:03 2019 - Executing: CopyFeatures D:\csny490\lidar_derivatives\sl_trans.gdb\sl_trans D:\csny490\lidar_derivatives\processing_data\rs_hydro_processing\tile_4179\tile_4179.gdb\sl_trans # 0 0 0
Start Time: Mon Mar 4 18:01:02 2019
Succeeded at Mon Mar 4 18:01:03 2019 (Elapsed Time: 1.31 seconds)
Mon Mar 04 18:01:03 2019 - Executing: CalculateField fl ROAD_USGS_CLASS_CD 9 PYTHON #
Start Time: Mon Mar 4 18:01:03 2019
Succeeded at Mon Mar 4 18:01:03 2019 (Elapsed Time: 0.02 seconds)
Mon Mar 04 18:01:11 2019 - Executing: SelectLayerByLocation fl INTERSECT in_memory\f07C41C46_821F_403E_B860_78A1103462AD # NEW_SELECTION NOT_INVERT
Start Time: Mon Mar 4 18:01:11 2019
Succeeded at Mon Mar 4 18:01:11 2019 (Elapsed Time: 0.12 seconds)
Mon Mar 04 18:01:11 2019 - Executing: AddField D:\csny490\lidar_derivatives\processing_data\rs_hydro_processing\tile_4179\tile_4179.gdb\sl_trans BUFF_DIST SHORT # # # # NULLABLE NON_REQUIRED #
Start Time: Mon Mar 4 18:01:11 2019
Adding BUFF_DIST to D:\csny490\lidar_derivatives\processing_data\rs_hydro_processing\tile_4179\tile_4179.gdb\sl_trans...
Succeeded at Mon Mar 4 18:01:11 2019 (Elapsed Time: 0.09 seconds)
Mon Mar 04 18:01:12 2019 - Executing: AddField D:\csny490\lidar_derivatives\processing_data\rs_hydro_processing\tile_4179\tile_4179.gdb\sl_trans RASTER_VAL SHORT # # # # NULLABLE NON_REQUIRED #
Start Time: Mon Mar 4 18:01:12 2019
Adding RASTER_VAL to D:\csny490\lidar_derivatives\processing_data\rs_hydro_processing\tile_4179\tile_4179.gdb\sl_trans...
Succeeded at Mon Mar 4 18:01:12 2019 (Elapsed Time: 0.12 seconds)

but now I just get....

Wed Mar 13 11:41:29 2019 - Starting run of script file: \\dnr\divisions\FR_DATA\forest_info_2\gis\projects\synthetic_streams_westside\scripts\step_11_implement_stream_model_worker_vpro231.py
Wed Mar 13 11:41:29 2019 - Recording logfile to: D:\csny490\lidar_derivatives\step_11_implement_stream_model_worker_vpro231_tile_4179_20190313114129.log
Wed Mar 13 11:41:29 2019 - TEMP directory set to D:\csny490\lidar_derivatives\processing_data\rs_hydro_processing\tile_4179
Wed Mar 13 11:41:29 2019 - Checked out Spatial Analyst License
Wed Mar 13 11:41:29 2019 - Checked out 3D Analyst License
Wed Mar 13 11:41:30 2019 - Start Time: Wednesday, March 13, 2019 11:41:30 AM
Succeeded at Wednesday, March 13, 2019 11:41:30 AM (Elapsed Time: 0.52 seconds)
Wed Mar 13 11:41:31 2019 - Start Time: Wednesday, March 13, 2019 11:41:30 AM
Succeeded at Wednesday, March 13, 2019 11:41:31 AM (Elapsed Time: 0.73 seconds)
Wed Mar 13 11:41:32 2019 - Start Time: Wednesday, March 13, 2019 11:41:31 AM
Succeeded at Wednesday, March 13, 2019 11:41:32 AM (Elapsed Time: 0.63 seconds)
Wed Mar 13 11:41:41 2019 - Con took 8.238934079187088 seconds...
Wed Mar 13 11:41:43 2019 - Start Time: Wednesday, March 13, 2019 11:41:41 AM
Succeeded at Wednesday, March 13, 2019 11:41:43 AM (Elapsed Time: 1.19 seconds)
Wed Mar 13 11:41:43 2019 - Start Time: Wednesday, March 13, 2019 11:41:43 AM
Succeeded at Wednesday, March 13, 2019 11:41:43 AM (Elapsed Time: 0.17 seconds)
Wed Mar 13 11:41:53 2019 - Start Time: Wednesday, March 13, 2019 11:41:51 AM
Succeeded at Wednesday, March 13, 2019 11:41:51 AM (Elapsed Time: 0.12 seconds)
Wed Mar 13 11:41:54 2019 - Start Time: Wednesday, March 13, 2019 11:41:53 AM
Adding BUFF_DIST to sl_trans...
Succeeded at Wednesday, March 13, 2019 11:41:54 AM (Elapsed Time: 0.43 seconds)
Wed Mar 13 11:41:55 2019 - Start Time: Wednesday, March 13, 2019 11:41:54 AM
Adding RASTER_VAL to sl_trans...
Succeeded at Wednesday, March 13, 2019 11:41:55 AM (Elapsed Time: 0.44 seconds)

Sad!

curtvprice
MVP Esteemed Contributor

This change not documented in the help as far as I can see. I'd log an incident request.

0 Kudos