no more info if logg db is nil

This commit is contained in:
Radu Ioan Fericean
2012-08-03 15:52:49 +03:00
parent 65b88190d8
commit 5024ff8111

View File

@@ -36,7 +36,7 @@ func (psl *PostgresLogger) Close() {
func (psl *PostgresLogger) Log(uuid string, cc *timespans.CallCost) {
if psl.db == nil {
timespans.Logger.Warning("Cannot write log to database.")
//timespans.Logger.Warning("Cannot write log to database.")
return
}
tss, err := json.Marshal(cc.Timespans)