Adjust logs to use a proper log-level

This commit is contained in:
Maschell 2022-05-14 19:49:12 +02:00
parent ab41975478
commit be2af9fdf0
2 changed files with 6 additions and 10 deletions

View File

@ -12,7 +12,7 @@ BackgroundThread::BackgroundThread() : BackgroundThreadWrapper(BackgroundThread:
this->serverSocket = create_server(PORT);
DCFlushRange(&(this->serverSocket), 4);
mutex.unlock();
DEBUG_FUNCTION_LINE("Resume Thread");
DEBUG_FUNCTION_LINE_VERBOSE("Resume Thread");
CThread::resumeThread();
}
@ -33,7 +33,7 @@ BOOL BackgroundThread::whileLoop() {
if (this->serverSocket >= 0) {
network_down = process_ftp_events(this->serverSocket);
if (network_down) {
DEBUG_FUNCTION_LINE("Network is down %d", this->serverSocket);
DEBUG_FUNCTION_LINE_VERBOSE("Network is down %d", this->serverSocket);
cleanup_ftp();
network_close(this->serverSocket);
this->serverSocket = -1;

View File

@ -2,13 +2,11 @@
#include "utils/logger.h"
#include "virtualpath.h"
#include <coreinit/cache.h>
#include <coreinit/dynload.h>
#include <cstring>
#include <iosuhax.h>
#include <iosuhax_devoptab.h>
#include <iosuhax_disc_interface.h>
#include <nn/ac.h>
#include <whb/log_udp.h>
#include <wups.h>
WUPS_PLUGIN_NAME("FTPiiU");
@ -41,18 +39,16 @@ ON_APPLICATION_START() {
AddVirtualFSVOLPath("external01", nullptr, nullptr);
AddVirtualFSVOLPath("content", nullptr, nullptr);
DEBUG_FUNCTION_LINE("IOSUHAX_Open");
int res = IOSUHAX_Open(nullptr);
if (res < 0) {
DEBUG_FUNCTION_LINE("IOSUHAX_open failed");
DEBUG_FUNCTION_LINE_ERR("IOSUHAX_open failed");
} else {
iosuhaxMount = 1;
//fatInitDefault();
DEBUG_FUNCTION_LINE("IOSUHAX_FSA_Open");
fsaFd = IOSUHAX_FSA_Open();
if (fsaFd < 0) {
DEBUG_FUNCTION_LINE("IOSUHAX_FSA_Open failed");
DEBUG_FUNCTION_LINE_ERR("IOSUHAX_FSA_Open failed");
}
DEBUG_FUNCTION_LINE("IOSUHAX_FSA_Open done");
@ -86,10 +82,10 @@ void stopThread() {
}
ON_APPLICATION_REQUESTS_EXIT() {
DEBUG_FUNCTION_LINE("Ending ftp server");
DEBUG_FUNCTION_LINE_VERBOSE("Ending ftp server");
stopThread();
DEBUG_FUNCTION_LINE("Ended ftp Server.");
DEBUG_FUNCTION_LINE_VERBOSE("Ended ftp Server.");
if (iosuhaxMount) {
IOSUHAX_sdio_disc_interface.shutdown();