Commit Graph

17 Commits

Author SHA1 Message Date
FlUxIuS 95007dad00 Patch for Ubuntu 22.04 2023-01-04 17:36:34 +01:00
Michael Iedema cc62ca4bb7 sync from commercial 270263e2437d5105b36fec2015176cfddec48ffb 2014-12-04 19:50:34 +01:00
Michael Iedema 88311c0670 merge 5.0 preview from commercial 2014-07-16 04:32:22 +02:00
Pat Thompson 7e87828c3b Allow an empty log level to mean use the default level.
This allows the CLI command "unconfig" on Log.Level.* or Log.Group.* to work as expected.
(upstream r8227)
2014-04-18 10:59:46 +02:00
pat.thompson 2f92ebc717 Change LOGHEX to use long instead of unsigned type so it will compile on 64 bit machines. 2014-03-31 12:28:39 +02:00
pat.thompson 0dc6d369e8 Back out r6976, r6977, r6980, r6981, which were namespace removals.
There is nothing wrong with namespace, and these changes generated 1700 lines of
irrelevant diff output making it difficult to compare various revisions of CommonLibs.
2014-03-31 12:17:26 +02:00
pat.thompson c17e42bd8e Result of merging features/dev -r7759:7824 to trunk.
Dont crash at shutdown.

Init logger gPid locally so Logger can be used in other programs besides OpenBTS, and shorten the log format.
2014-03-31 12:15:14 +02:00
dgotwisner b21473440f Bug 242 (yes, that old).
Add date to alarms (and console/syslog messages through Logger). Timestamp
was already there.
2014-03-31 12:12:35 +02:00
dgotwisner 7b0e351a23 Remove smarts to cache thread id, as I believe there was a locking issue and
significantly added overhead dealing with locking each time than in just doing
the system call.
I expect that this will allow 1655 to work for Neel.
2014-03-31 12:11:05 +02:00
pat.thompson 32d756c24c Add Log.Group SMS for easier SMS debugging. 2014-03-31 12:06:44 +02:00
dgotwisner 6129dbfbc2 Changed logging system to "cache" gettid() values, to avoid system calls at
runtime (ie, when logging).
The implementation is cludgy. This is because we create threads before main,
as a result of global thread objects (as opposed to pointers to thread objects
that get new'ed and started in main).
A view of the system through strace indicates one or two calls to gettid() per
thread (usually 1, occasionally 2). Changing the read lock in Log() to a write
lock deadlocks.
2014-03-31 12:04:56 +02:00
dgotwisner 73ef35474f Eliminate getpid() calls when logging. 2014-03-31 12:03:44 +02:00
dgotwisner 06343d3812 Changed logger to use getpid() and gettid() instead of pthread_self(), as
pthread_self() just returns a pointer to an opaque data structure used by
pthreads, and the other two give information that is useful to relate to top,
ps, etc.
Accidently changed indent in SelfDetect::Exit(). Sorry Michael.
Found as a result of working through bug 1608.
2014-03-31 12:02:24 +02:00
Michael Iedema abec8dabb6 merged in commercial commonlibs 2014-03-24 22:57:31 +01:00
Kurtis Heimerl 59515c11f0 Complete Configuration sync. While testing, I discovered what I think is a race condition: getStr("SIP.SMSC") returned another config key ("GSM.MS.TA.Damping") which I assume is a race condition in the config cache. However, I've been unable to replicate the issue and I think it may resolve itself quickly (as these things are successfully cached)
git-svn-id: http://wush.net/svn/range/software/public/CommonLibs/trunk@5656 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2013-05-31 21:47:42 +00:00
David Burgess 22c77a7c6a git-svn-id: http://wush.net/svn/range/software/public/CommonLibs/trunk@2583 19bc5d8c-e614-43d4-8b26-e1612bc8e597 2011-11-20 00:22:41 +00:00
David Burgess c2c51d9107 Putting versions of RRLP, CommonLibs and sqlite3 into the public release branch.
git-svn-id: http://wush.net/svn/range/software/public/CommonLibs/trunk@2254 19bc5d8c-e614-43d4-8b26-e1612bc8e597
2011-10-07 19:20:49 +00:00