Skip to content

Commit

Permalink
Remove commented code. Add an info log when Ducky starts
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieledarrigo committed Sep 1, 2020
1 parent f9b383d commit b256dab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/ducky.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ int make_socket(int port, int reuse) {
exit(EXIT_FAILURE);
}

logs(LOG_INFO, "Ducky up and running, listening on port 20017");

return sockfd;
}

Expand Down
8 changes: 0 additions & 8 deletions src/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ static const char *log_levels[] = {
"FATAL"
};

//char *event_date(char *buffer) {
// time_t t = time(NULL);
// size_t len = strftime(buffer, sizeof(buffer), "%H:%M:%S", localtime(&t));
// buffer[len] = '\0';
//
// return buffer;
//}

void logs(log_level level, const char *fmt, ...) {
char buffer[100];
time_t t = time(NULL);
Expand Down

0 comments on commit b256dab

Please sign in to comment.