From: Thierry Parmentelat Date: Fri, 4 Feb 2011 08:23:23 +0000 (+0100) Subject: more verbose when fails to deal with a tagtype X-Git-Tag: plcapi-5.0-28~4 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=6a0f3e06d77787c74a069c21617b562bfb00898b more verbose when fails to deal with a tagtype --- diff --git a/db-config.d/000-functions b/db-config.d/000-functions index f268979..db1263e 100644 --- a/db-config.d/000-functions +++ b/db-config.d/000-functions @@ -2,6 +2,7 @@ #################### import sys, os import resource +import traceback g_url = "" def GetMyPLCURL(): return g_url @@ -54,7 +55,9 @@ def SetTagType(tag_type): except: # something went wrong for that tagname, # but don't want to break the whole startup sequence - print "Could not enforce tagtype %s"%tagname + print "Could not enforce tagtype %s --- beg"%tagname + traceback.print_exc() + print "Could not enforce tagtype %s --- end"%tagname pass # Get list of existing (enabled, global) files