Shrinking the log file after an exceptional event is okay - but you don't want to get in the habit of shrinking it as a general practice because it will just grow and suffer from file fragmentation.
The command you issued is okay - except you did not provide a size so it was shrunk back to the initial size which may not be large enough for normal day to day operation. Since this is on your workstation that is probably okay.