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:
1 parent
e28999e15f
commit
9189f92432
2 files changed
+6
-7
No files matched your search
@@ -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`}
|
||||
|
||||
Reference in new issue
Block a user