Closed
Bug 580384
Opened 15 years ago
Closed 15 years ago
stage socorro update webservice code
Categories
(mozilla.org Graveyard :: Server Operations, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ozten, Assigned: aravind)
Details
Please update the code under socorro and scripts
1) There is a new web service socorro/services/aduByDayDetails.py
2) Please edit scripts/config/webapiconfig.py and remove the following:
-import socorro.services.topCrashBySignatureTrends as tcbst
-import socorro.services.signatureHistory as sighist
-import socorro.services.aduByDay as adubd
-import socorro.services.getCrash as crash
-servicesList = cm.Option()
-servicesList.doc = 'a python list of classes to offer as services'
-servicesList.default = [tcbst.TopCrashBySignatureTrends, sighist.SignatureHistory, adubd.AduByDay, adubd.AduByDay200912, crash.GetCrash]
See scripts/config/webapiconfig.py.dist for an example
3) Restart web services layer
Assignee | ||
Comment 1•15 years ago
|
||
updated and restarted httpd. The config file now reads
import socorro.lib.ConfigurationManager as cm
import datetime
from config.commonconfig import databaseHost
from config.commonconfig import databasePort
from config.commonconfig import databaseName
from config.commonconfig import databaseUserName
from config.commonconfig import databasePassword
from config.commonconfig import crashStorageClass
#---------------------------------------------------------------------------
# HBase storage system
if crashStorageClass.default == 'CrashStorageSystemForHBase':
from config.commonconfig import hbaseHost
from config.commonconfig import hbasePort
from config.commonconfig import hbaseTimeout
wsgiInstallation = cm.Option()
wsgiInstallation.doc = 'True or False, this app is istalled under WSGI'
wsgiInstallation.default = True
logFilePathname = cm.Option()
logFilePathname.doc = 'full pathname for the log file'
logFilePathname.default = './webapi.log'
logFileMaximumSize = cm.Option()
logFileMaximumSize.doc = 'maximum size in bytes of the log file'
logFileMaximumSize.default = 1000000
logFileMaximumBackupHistory = cm.Option()
logFileMaximumBackupHistory.doc = 'maximum number of log files to keep'
logFileMaximumBackupHistory.default = 10
logFileLineFormatString = cm.Option()
logFileLineFormatString.doc = 'python logging system format for log file entries'
logFileLineFormatString.default = '%(asctime)s %(levelname)s - %(message)s'
logFileErrorLoggingLevel = cm.Option()
logFileErrorLoggingLevel.doc = 'logging level for the log file (10 - DEBUG, 20 - INFO, 30 - WARNING, 40 - ERROR, 50 - CRITICAL)'
logFileErrorLoggingLevel.default = 10
Assignee: server-ops → aravind
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: mozilla.org → mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•