added an example script for graphite/carbon update

This commit is contained in:
roberto@debian32
2011-04-27 08:04:45 +02:00
parent 4a8233a041
commit 865b2de9bb
2 changed files with 38 additions and 0 deletions
+5
View File
@@ -417,6 +417,11 @@ void init_uwsgi_embedded_module() {
exit(1);
}
if (PyDict_SetItemString(up.embedded_dict, "hostname", PyString_FromStringAndSize(uwsgi.hostname, uwsgi.hostname_len))) {
PyErr_Print();
exit(1);
}
if (uwsgi.mode) {
if (PyDict_SetItemString(up.embedded_dict, "mode", PyString_FromString(uwsgi.mode))) {
PyErr_Print();