More logging
This commit is contained in:
		
							parent
							
								
									84db52346c
								
							
						
					
					
						commit
						ed6ee7af4f
					
				@ -369,6 +369,7 @@
 | 
				
			|||||||
                this.defaultCharacter = data.default_character;
 | 
					                this.defaultCharacter = data.default_character;
 | 
				
			||||||
            } catch(e) {
 | 
					            } catch(e) {
 | 
				
			||||||
                this.error = l('login.error');
 | 
					                this.error = l('login.error');
 | 
				
			||||||
 | 
					                log.error('connect.error', e);
 | 
				
			||||||
                if(process.env.NODE_ENV !== 'production') throw e;
 | 
					                if(process.env.NODE_ENV !== 'production') throw e;
 | 
				
			||||||
            } finally {
 | 
					            } finally {
 | 
				
			||||||
                this.loggingIn = false;
 | 
					                this.loggingIn = false;
 | 
				
			||||||
 | 
				
			|||||||
@ -280,6 +280,11 @@ function createWindow(): Electron.BrowserWindow | undefined {
 | 
				
			|||||||
                log.debug('adblock.inject.style', { length: style.length, url });
 | 
					                log.debug('adblock.inject.style', { length: style.length, url });
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					    ).catch(
 | 
				
			||||||
 | 
					      (err) => {
 | 
				
			||||||
 | 
					        log.warn('adblock.init.error', 'Adblocker failed to initialize.'
 | 
				
			||||||
 | 
					            + 'This does not break F-Chat Rising, but may produce slower image previews', err);
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user