git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more verbose when fails to deal with a tagtype
[plcapi.git]
/
db-config.d
/
000-functions
diff --git
a/db-config.d/000-functions
b/db-config.d/000-functions
index
f268979
..
db1263e
100644
(file)
--- a/
db-config.d/000-functions
+++ b/
db-config.d/000-functions
@@
-2,6
+2,7
@@
####################
import sys, os
import resource
####################
import sys, os
import resource
+import traceback
g_url = ""
def GetMyPLCURL(): return g_url
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
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
pass
# Get list of existing (enabled, global) files