aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorache <ache@ache.one>2018-11-08 16:40:47 +0100
committerache <ache@ache.one>2018-11-08 16:40:47 +0100
commit6cb43717cbbe8380d2aeb382d2b6f350bab74494 (patch)
tree717ee722cd50ebcbd4979b4e7156c1b860cebf88 /main.c
parentFix message showing bug (diff)
Improve loggers
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.c b/main.c
index d62615a..6a7e327 100644
--- a/main.c
+++ b/main.c
@@ -50,6 +50,7 @@ extern int firstSMSIndex;
extern int canAugment;
extern int showName;
+#define DEBUG
void fail_exit(const char *msg) {
@@ -61,6 +62,10 @@ void fail_exit(const char *msg) {
int main(int argc, char* argv[]){
+#ifdef DEBUG
+ freopen("/tmp/mesms.debug", "w", stderr);
+#endif
+
/* Gestion des paramètres */
while (1) {
int c;
@@ -129,6 +134,7 @@ int main(int argc, char* argv[]){
}
+ fprintf(stderr, "test");
/* Initialisation */
@@ -162,14 +168,17 @@ int main(int argc, char* argv[]){
int r = 0;
+ fprintf(stderr, "test1");
if( r = fillContactList(DEFAULT_CONTACT_FILENAME) ) {
return r;
}
if( r = loadConv() ) {
return r;
}
+ fprintf(stderr, "test2");
sortContacts();
+ fprintf(stderr, "test3");
for(int i = 0 ; i < 9 ; i++) {
init_pair( i+1, i, COLOR_BLACK);