forked from Chat_things/NeuroDock
Core.java
- Added a safe handle for if Core#logWriter is not initialized to prevent craching GetLyrics.java - Slowly modifying the http headers to avoid package due to catching this as a Scrapper - Added so we skip extra calls if the song is cached
This commit is contained in:
@@ -462,6 +462,10 @@ public class Core {
|
||||
*/
|
||||
public static void writeLog(String message)
|
||||
{
|
||||
if(logWriter == null) {
|
||||
System.err.println("!! Log writer is not initialized !!");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MM/dd%EEEE HH:mm:ss'#'SSS");
|
||||
|
||||
Reference in New Issue
Block a user