Logging expire & Bugfix

**** Not done yet ****
+ Bugfix: The data of the startup ICCC message was not proper set
+ Changed the logging expire
This commit is contained in:
Thorsten committed 2014-11-07 17:31:21 +01:00
1 parent e28999e15f
commit 9189f92432
2 files changed
+6 -7

No files matched your search

+4 -6
View File
@@ -58,14 +58,12 @@ func initDatabase() {
//
indexTimeUTC := mgo.Index{}
indexTimeUTC.Key = []string{`TimeUTC`}
logDBCollection.EnsureIndex(indexTimeUTC)
if expire {
indexTTL := mgo.Index{}
indexTTL.Key = []string{`TimeUTC`}
indexTTL.ExpireAfter = time.Duration(expireAfterDays) * time.Hour * 24
logDBCollection.EnsureIndex(indexTTL)
indexTimeUTC.ExpireAfter = time.Duration(expireAfterDays*24) * time.Hour
} else {
indexTimeUTC.ExpireAfter = time.Duration(0)
}
logDBCollection.EnsureIndex(indexTimeUTC)
indexProject := mgo.Index{}
indexProject.Key = []string{`Project`}