mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	A quick & easy way to see the logs
This commit is contained in:
		
							
								
								
									
										15
									
								
								src/documents/management/commands/document_logs.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								src/documents/management/commands/document_logs.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| from django.core.management.base import BaseCommand | ||||
|  | ||||
| from documents.models import Log | ||||
|  | ||||
| from ...mixins import Renderable | ||||
|  | ||||
|  | ||||
| class Command(BaseCommand): | ||||
|  | ||||
|     help = "A quick & dirty way to see what's in the logs" | ||||
|  | ||||
|     def handle(self, *args, **options): | ||||
|         for l in Log.objects.order_by("pk"): | ||||
|             print(l) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn