mirror of
https://github.com/javalsai/lidm.git
synced 2025-09-03 11:48:00 +02:00
dev: start to implement logger in some places
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
#include "util.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
if (argc == 2) chvt_str(argv[1]);
|
||||
|
||||
char* log_output = getenv("LIDM_LOG");
|
||||
if (log_output) {
|
||||
FILE* log_fd = fopen(log_output, "w");
|
||||
@@ -28,6 +26,8 @@ int main(int argc, char* argv[]) {
|
||||
log_init(log_fd);
|
||||
}
|
||||
|
||||
if (argc == 2) chvt_str(argv[1]);
|
||||
|
||||
char* conf_override = getenv("LIDM_CONF");
|
||||
struct config* config =
|
||||
parse_config(conf_override == NULL ? "/etc/lidm.ini" : conf_override);
|
||||
|
Reference in New Issue
Block a user