OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 Polymer('log-panel', { |
| 6 publish: { |
| 7 /** |
| 8 * List of displayed logs. |
| 9 * @type {Array.<{{ |
| 10 * text: string, |
| 11 * date: string, |
| 12 * source: string |
| 13 * }}>} |
| 14 */ |
| 15 logs: [ |
| 16 { text: "sh: missing ]" }, |
| 17 { text: "Starting Mount filesystems on boot [ OK ]" }, |
| 18 { text: "Starting Populate /dev filesystem [ OK ]" }, |
| 19 { text: "Stopping Populate /dev filesystem [ OK ]" }, |
| 20 { text: "Starting Create /var/run/ccache [ OK ]" }, |
| 21 { text: "Starting Populate and link to /run filesystem [ OK ]" }, |
| 22 { text: "Starting Create /run/credentials-cache [ OK ]" }, |
| 23 { text: "Stopping Create /var/run/ccache [ OK ]" }, |
| 24 { text: "Stopping Populate and link to /run filesystem [ OK ]" }, |
| 25 { text: "Stopping Create /run/credentials-cache [ OK ]" }, |
| 26 { text: "Starting Signal sysvinit that the rootfs is mounted [ OK ]" }, |
| 27 { text: "Starting Clean /tmp directory [ OK ]" }, |
| 28 { text: "Stopping Track if upstart is running in a container [ OK ]" }, |
| 29 { text: "Starting mount available cgroup filesystems [ OK ]" }, |
| 30 { text: "Stopping Clean /tmp directory [ OK ]" }, |
| 31 { text: "Starting Initialize or finalize resolvconf [ OK ]" }, |
| 32 { text: "mount: none already mounted or /dev/cgroup/cpu busy" }, |
| 33 { text: "Starting Set custom IMA policy [ OK ]" }, |
| 34 { text: "Stopping Set custom IMA policy [ OK ]" }, |
| 35 { text: "Starting Bridge udev events into upstart [ OK ]" }, |
| 36 { text: "Starting detecthammer security monitoring daemon [ OK ]" }, |
| 37 { text: "Starting linhelm security monitoring daemon [ OK ]" }, |
| 38 { text: "Starting Fetch otp over bluetooth on demand [ OK ]" }, |
| 39 { text: "Starting device node and kernel event manager [ OK ]" }, |
| 40 { text: "Starting Enabling additional executable binary formats [ OK ]" }, |
| 41 { text: "Starting flush early job output to logs [ OK ]" }, |
| 42 { text: "Stopping Mount filesystems on boot [ OK ]" }, |
| 43 { text: "Starting NFSv4 id <-> name mapper [ OK ]" }, |
| 44 { text: "Stopping flush early job output to logs [ OK ]" }, |
| 45 { text: "Starting load modules from /etc/modules [ OK ]" }, |
| 46 { text: "Starting load modules from /etc/modules [ OK ]" }, |
| 47 { text: "Starting log initial device creation [ OK ]" }, |
| 48 { text: "Starting D-Bus system message bus [ OK ]" }, |
| 49 { text: "Stopping load modules from /etc/modules [ OK ]" }, |
| 50 { text: "Stopping load modules from /etc/modules [ OK ]" }, |
| 51 { text: "Starting Uncomplicated firewall [ OK ]" }, |
| 52 { text: "Starting Bridge file events into upstart [ OK ]" }, |
| 53 { text: "Starting bluetooth daemon [ OK ]" }, |
| 54 { text: "Starting SystemD login management service [ OK ]" }, |
| 55 { text: "Starting system logging daemon [ OK ]" }, |
| 56 { text: "Starting configure network device security [ OK ]" }, |
| 57 { text: "Starting configure network device security [ OK ]" }, |
| 58 { text: "Stopping cold plug devices [ OK ]" }, |
| 59 { text: "Starting configure network device security [ OK ]" }, |
| 60 { text: "Starting CUPS printing spooler/server [ OK ]" }, |
| 61 { text: "Starting configure network device [ OK ]" }, |
| 62 { text: "Starting Mount network filesystems [ OK ]" }, |
| 63 { text: "Starting Upstart job to start rpcbind on boot only [ OK ]" }, |
| 64 { text: "Starting Failsafe Boot Delay [ OK ]" }, |
| 65 { text: "Stopping log initial device creation [ OK ]" }, |
| 66 { text: "Stopping Upstart job to start rpcbind on boot only [ OK ]" }, |
| 67 { text: "Starting load fallback graphics devices [ OK ]" }, |
| 68 { text: "Starting configure network device security [ OK ]" }, |
| 69 { text: "Starting configure network device [ OK ]" }, |
| 70 { text: "Stopping load fallback graphics devices [ OK ]" }, |
| 71 { text: "Stopping Failsafe Boot Delay [ OK ]" }, |
| 72 { text: "Stopping Mount network filesystems [ OK ]" }, |
| 73 { text: "Starting System V initialisation compatibility [ OK ]" }, |
| 74 { text: "Starting configure virtual network devices [ OK ]" }, |
| 75 { text: "Initializing random number generator... [ OK ]" }, |
| 76 { text: "Setting up X socket directories... [ OK ]" }, |
| 77 { text: "Starting configure network device [ OK ]" }, |
| 78 { text: "Starting modem connection manager [ OK ]" }, |
| 79 { text: "Starting configure network device security [ OK ]" }, |
| 80 { text: "Starting RPC portmapper replacement [ OK ]" }, |
| 81 { text: "Stopping System V initialisation compatibility [ OK ]" }, |
| 82 { text: "Starting Create /var/run/ccache [ OK ]" }, |
| 83 { text: "Stopping Create /var/run/ccache [ OK ]" }, |
| 84 { text: "Starting Monitor for unauthorized access to cookies. [ OK ]" }, |
| 85 { text: "Starting System V runlevel compatibility [ OK ]" }, |
| 86 { text: "Starting anac(h)ronistic cron [ OK ]" }, |
| 87 { text: "Starting ACPI daemon [ OK ]" }, |
| 88 { text: "Starting regular background program processing daemon [ OK ]" }, |
| 89 { text: "Starting deferred execution scheduler [ OK ]" }, |
| 90 { text: "Starting Run the nvidia-updater Upstart task before the " + |
| 91 "goobuntu-updater Upstart task [ OK ]" }, |
| 92 { text: "Starting build kernel modules for current kernel [ OK ]" }, |
| 93 { text: "Starting CPU interrupts balancing daemon [ OK ]" }, |
| 94 { text: "Starting rpcsec_gss daemon [ OK ]" }, |
| 95 { text: "Starting NSM status monitor [ OK ]" }, |
| 96 { text: "Stopping anac(h)ronistic cron [ OK ]" }, |
| 97 { text: "Starting Run the nvidia-updater during startup [ OK ]" }, |
| 98 { text: "Starting regular background program processing daemon [ OK ]" }, |
| 99 { text: "Starting KVM [ OK ]" }, |
| 100 { text: "Starting automatic crash report generation [ OK ]" }, |
| 101 { text: "Starting Automounter [ OK ]" }, |
| 102 { text: "Stopping Restore Sound Card State [ OK ]" }, |
| 103 { text: "Starting libvirt daemon [ OK ]" }, |
| 104 { text: "gdm start/starting" }, |
| 105 { text: "initctl: Unknown job: kdm" }, |
| 106 { text: "lightdm start/starting" }, |
| 107 { text: "initctl: Unknown job: lxdm" }, |
| 108 { text: "Starting Bridge socket events into upstart [ OK ]" }, |
| 109 { text: "Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox" }, |
| 110 { text: "Starting AppArmor profiles [ OK ]" }, |
| 111 { text: "Checking for available NVIDIA updates ..." }, |
| 112 { text: "Starting audit daemon auditd [ OK ]" }, |
| 113 { text: "Starting Dropbear SSH server: [abort] NO_START is not " + |
| 114 "set to zero in /etc/default/dropbear" }, |
| 115 { text: "Starting logs-exporterd [ OK ]" }, |
| 116 { text: "Starting Machine Check Exceptions decoder: mcelog." }, |
| 117 { text: "ERROR: [Errno -2] Name or service not known" }, |
| 118 { text: "2015-04-01 13:12:35,580:INFO:Daemon process started in the " + |
| 119 "background, logging to " + |
| 120 "'/tmp/chrome_remote_desktop_20150401_131235_3BiEyp'" }, |
| 121 { text: "Using host_id: cd1af87e-488c-38ec-6b84-40e028bbf174" }, |
| 122 { text: "Launching X server and X session." }, |
| 123 { text: "Starting NTP server ntpd [ OK ]" }, |
| 124 { text: "Not starting internet superserver: no services enabled" }, |
| 125 { text: "Starting OpenCryptoki PKCS#11 slot daemon: pkcsslotd." }, |
| 126 { text: "Starting OSS Proxy Daemon osspd [ OK ]" }, |
| 127 { text: "Starting /usr/bin/Xvfb-randr on display :20" }, |
| 128 { text: "Starting network connection manager [ OK ]" }, |
| 129 { text: "INFO: Configuring network-manager from upstart" }, |
| 130 { text: "/proc/self/fd/9: line 6: INFO: Configuring network-manager " + |
| 131 "from upstart: command not found" }, |
| 132 { text: "Updating connection SNAX" }, |
| 133 { text: "Xvfb is active." }, |
| 134 { text: "Completed successfully" }, |
| 135 { text: "INFO: Success" }, |
| 136 { text: "/proc/self/fd/9: line 6: INFO: Success: command not found" }, |
| 137 { text: "Starting Postfix Mail Transport Agent postfix [ OK ]" }, |
| 138 { text: "Stopping build kernel modules for current kernel [ OK ]" }, |
| 139 { text: "Launching host process" }, |
| 140 { text: "Stopping Run the nvidia-updater during startup [ OK ]" }, |
| 141 { text: "Stopping Run the nvidia-updater Upstart task before the " + |
| 142 "goobuntu-updater Upstart task [ OK ]" }, |
| 143 { text: "Waiting up to 60s for the hostname ..." }, |
| 144 { text: "Recovering schroot sessions [ OK ]" }, |
| 145 { text: "[33m*39;49m Not starting S.M.A.R.T. daemon smartd, disabled " + |
| 146 "via /etc/default/smartmontools" }, |
| 147 { text: "Starting OpenBSD Secure Shell server... [ OK ]" }, |
| 148 { text: "No response from daemon. It may have crashed, or may still " + |
| 149 "be running in the background." }, |
| 150 { text: "Host ready to receive connections." }, |
| 151 { text: "Log file: /tmp/chrome_remote_desktop_20150401_131235_3BiEyp" }, |
| 152 { text: "Starting VirtualBox kernel modules [ OK ]" }, |
| 153 { text: "saned disabled; edit /etc/default/saned" }, |
| 154 { text: "Restoring resolver state... [ OK ]" }, |
| 155 { text: "The hostname has not changed" }, |
| 156 { text: |
| 157 'access-control-allow-origin:*\n ' + |
| 158 'cache-control:public, max-age=600\n ' + |
| 159 'date:Thu, 16 Apr 2015 21:15:23 GMT\n ' + |
| 160 'etag:"nhb8IQ"\n ' + |
| 161 'expires:Thu, 16 Apr 2015 21:25:23 GMT\n ' + |
| 162 'server:Google Frontend\n ' + |
| 163 'status:304\n ' + |
| 164 'x-google-appengine-appid:s~polymer-project\n ' + |
| 165 'x-google-appengine-module:default\n ' + |
| 166 'x-google-appengine-version:2015-04-13\n ' + |
| 167 'x-google-backends:/gns/project/apphosting/appserver/prod-appengine' + |
| 168 '/ic/prod-appengine.remote-ib.appserver/380,icbie6.prod.google.com:' + |
| 169 '4489,/bns/ic/borg/ic/bns/apphosting/prod-appengine.edge.frontend/2' + |
| 170 '30,ibk19:6599,/bns/ib/borg/ib/bns/gfe-prod/shared-gfe_31_silos/1.g' + |
| 171 'fe,icna18:9845\n ' + |
| 172 'x-google-dos-service-trace:main:apphosting,dasher:' + |
| 173 'apphosting\n ' + |
| 174 'x-google-gfe-request-trace:icna18:9845,ibk19:6599,/bns/ic/borg/ic/' + |
| 175 'bns/apphosting/prod-appengine.edge.frontend/230,ibk19:6599,icna18:' + |
| 176 '9845\n ' + |
| 177 'x-google-gfe-response-code-details-trace:response_code_set_by_back' + |
| 178 'end,response_code_set_by_backend\n ' + |
| 179 'x-google-gfe-service-trace:apphosting,dasher_zoo_responder,apphost' + |
| 180 'ing\n ' + |
| 181 'x-google-gslb-service:apphosting\n ' + |
| 182 'x-google-netmon-label:/bns/ic/borg/ic/bns/apphosting/prod-appengin' + |
| 183 'e.edge.frontend/230\n ' + |
| 184 'x-google-service:apphosting,apphosting\n' }, |
| 185 { text: "goobuntu-updater configuration: ARGS='--init " + |
| 186 "--only-if-forced --verbose' BLOCK_BOOT=false" }, |
| 187 { text: "Running goobuntu-updater ..." }, |
| 188 { text: "Starting GNOME Display Manager [ OK ]" }, |
| 189 { text: "No apache MPM package installed" }, |
| 190 { text: "Starting Unblock the restart of the gdm display " + |
| 191 "manager when it stops by emitting the " + |
| 192 "nvidia-updater-unblock-gdm-start event [ OK ]" }, |
| 193 { text: "Stopping GNOME Display Manager [ OK ]" }, |
| 194 ], |
| 195 }, |
| 196 |
| 197 /** |
| 198 * Stores the logs that are cleared. |
| 199 * @type {Array.<Log>} |
| 200 * @private |
| 201 */ |
| 202 prevLogs_: null, |
| 203 |
| 204 /** |
| 205 * Called after the Polymer element is initialized. |
| 206 */ |
| 207 ready: function() { |
| 208 this.async(this.scrollToBottom_); |
| 209 }, |
| 210 |
| 211 /** |
| 212 * Clears the logs. |
| 213 * @private |
| 214 */ |
| 215 clearLogs: function() { |
| 216 var prevLogs = this.logs; |
| 217 this.logs = this.prevLogs; |
| 218 this.prevLogs = prevLogs; |
| 219 this.async(this.scrollToBottom_); |
| 220 }, |
| 221 |
| 222 /** |
| 223 * Scrolls the logs container to the bottom. |
| 224 * @private |
| 225 */ |
| 226 scrollToBottom_: function() { |
| 227 this.$.list.scrollTop = this.$.list.scrollHeight; |
| 228 }, |
| 229 }); |
OLD | NEW |