feature/IO-3029-Enhanced-Logging-File-Based: Add fix bugs
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -191,7 +191,13 @@ const createLogger = () => {
|
||||
return false;
|
||||
};
|
||||
|
||||
if (upload || checkAndUploadLog()) return;
|
||||
// Upload log immediately if upload is true, otherwise check the log size.
|
||||
if (upload) {
|
||||
uploadLogToS3(logEntry, message, type, user);
|
||||
return;
|
||||
}
|
||||
|
||||
if (checkAndUploadLog()) return;
|
||||
|
||||
winstonLogger.log(logEntry);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user