Check the SQL error log. Any errors or prints from a logon trigger go in there.
I would suggest wrapping the code in a TRY.. CATCH block and have the catch print out the error message.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability